AbstractView
class AbstractView implements ArrayAccess (View source)
The AbstractView class.
Traits
Constants
DEFAULT_MODEL |
|
Methods
Method to instantiate the view.
boot
handleData
processData
getData
setData
get
set
render
__toString
Is a property exists or not.
Get a property.
Set a value to property.
Unset a property.
getName
Method to set property name
Method to get property Package
Method to get property Config
Method to set property config
__get
Method to get property Model
Method to set property model
Method to add model with name.
removeModel
getRouter
Details
at line line 88
__construct(array $data = null, array $config = null)
Method to instantiate the view.
at line line 114
void
boot()
boot
at line line 145
AbstractView
handleData()
handleData
at line line 170
mixed
getHandledData()
processData
at line line 180
Data
getData()
getData
at line line 197
AbstractView
setData(array $data)
setData
at line line 212
null
get(string $key, mixed $default = null)
get
at line line 225
$this
set(string $key, mixed $value)
set
at line line 239
string
render()
render
at line line 291
string
__toString()
__toString
at line line 314
boolean
offsetExists(mixed $offset)
Is a property exists or not.
at line line 327
mixed
offsetGet(mixed $offset)
Get a property.
at line line 341
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
at line line 354
void
offsetUnset(mixed $offset)
Unset a property.
at line line 369
string
getName(int $backwards = 2)
getName
at line line 399
AbstractView
setName(string $name)
Method to set property name
at line line 413
AbstractPackage
getPackage(int $backwards = 4)
Method to get property Package
at line line 445
AbstractView
setPackage(AbstractPackage $package)
Method to set property package
at line line 471
Structure
getConfig()
Method to get property Config
at line line 488
AbstractView
setConfig(Structure $config)
Method to set property config
at line line 505
Structure
__get(string $name)
__get
at line line 532
ModelRepository
getModel(string $name = null)
Method to get property Model
at line line 546
AbstractView
setModel(ModelRepository $model, bool $default = null, string $customName = null)
Method to set property model
at line line 562
AbstractView
addModel(string $name, ModelRepository $model, string $default = null)
Method to add model with name.
at line line 576
AbstractView
removeModel(string $name)
removeModel
at line line 588
PackageRouter
getRouter()
getRouter