ModelRepository
class ModelRepository implements ArrayAccess (View source)
Class DatabaseModel
Traits
The BootableTrait class.
The MultiSingletonTrait class.
Methods
__construct(Structure|array $config = null, Structure $state = null, mixed $source = null)
Instantiate the model.
mixed
__call(string $name, array $args = array())
__call
Structure
getConfig()
Method to get property Config
setConfig(Structure $config)
Method to set property config
string
getName()
Method to get property Name
setName(string $name)
Method to set property name
string
getCacheId(string $id = null)
getStoredId
resetCache()
resetCache
Structure
getState()
Get the model state.
void
setState(Structure $state)
Set the model state.
mixed
get(string $key, mixed $default = null)
get
$this
set(string $key, mixed $value)
set
reset()
reset
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.
Structure
__get(string $name)
__get
Details
in SingletonTrait at line line 32
static SingletonTrait
getInstance(array $args)
getInstance
in SingletonTrait at line line 51
static mixed
setInstance(object $instance)
setInstance
at line line 84
__construct(Structure|array $config = null, Structure $state = null, mixed $source = null)
Instantiate the model.
at line line 118
mixed
__call(string $name, array $args = array())
__call
at line line 145
Structure
getConfig()
Method to get property Config
at line line 157
ModelRepository
setConfig(Structure $config)
Method to set property config
at line line 169
string
getName()
Method to get property Name
at line line 195
ModelRepository
setName(string $name)
Method to set property name
at line line 209
string
getCacheId(string $id = null)
getStoredId
at line line 260
ModelRepository
resetCache()
resetCache
at line line 285
Structure
getState()
Get the model state.
at line line 297
void
setState(Structure $state)
Set the model state.
at line line 310
mixed
get(string $key, mixed $default = null)
get
at line line 323
$this
set(string $key, mixed $value)
set
at line line 335
ModelRepository
reset()
reset
at line line 349
boolean
offsetExists(mixed $offset)
Is a property exists or not.
at line line 362
mixed
offsetGet(mixed $offset)
Get a property.
at line line 376
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
at line line 389
void
offsetUnset(mixed $offset)
Unset a property.
at line line 401
Structure
__get(string $name)
__get