ViewModel
class ViewModel implements ArrayAccess (View source)
The ViewModel class.
Methods
getModel(string $name = null)
Method to get property Model
setModel(ModelRepository $model, bool $default = null, string $customName = null)
Method to set property model
mixed
get(string $name, string $modelName = null, array $args)
get
mixed
load(string $name, string $modelName = null, array $args)
get
removeModel(string $name)
removeModel
boolean
exists(string $name)
Method to check a model exists.
mixed
__call(string $name, array $args)
__call
boolean
offsetExists(mixed $offset)
Is a property exists or not.
mixed
offsetGet(mixed $offset)
Get a property.
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
void
offsetUnset(mixed $offset)
Unset a property.
int
count()
Count this object.
getNullModel()
Method to get property NullModel
Details
at line line 48
ModelRepository
getModel(string $name = null)
Method to get property Model
at line line 74
ViewModel
setModel(ModelRepository $model, bool $default = null, string $customName = null)
Method to set property model
at line line 98
mixed
get(string $name, string $modelName = null, array $args)
get
at line line 126
mixed
load(string $name, string $modelName = null, array $args)
get
at line line 172
boolean
exists(string $name)
Method to check a model exists.
at line line 185
mixed
__call(string $name, array $args)
__call
at line line 199
boolean
offsetExists(mixed $offset)
Is a property exists or not.
at line line 212
mixed
offsetGet(mixed $offset)
Get a property.
at line line 226
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
at line line 239
void
offsetUnset(mixed $offset)
Unset a property.
at line line 249
int
count()
Count this object.
at line line 259
ModelRepository
getNullModel()
Method to get property NullModel
at line line 281
ViewModel
setNullModel(ModelRepository $nullModel)
Method to set property nullModel