class DashboardModel extends ModelRepository (View source)

The DashboardModel class.

Traits

The BootableTrait class.
The MultiSingletonTrait class.

Methods

static SingletonTrait
getInstance(array $args)

getInstance

static mixed
setInstance(object $instance)

setInstance

__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

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

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

array
getItems()

getItems

array
getLastItem()

getLastItem

Details

static SingletonTrait getInstance(array $args)

getInstance

Parameters

array $args

Return Value

SingletonTrait

static mixed setInstance(object $instance)

setInstance

Parameters

object $instance

Return Value

mixed

__construct(Structure|array $config = null, Structure $state = null, mixed $source = null)

Instantiate the model.

Parameters

Structure|array $config The model config.
Structure $state The model state.
mixed $source The data source.

mixed __call(string $name, array $args = array())

__call

Parameters

string $name
array $args

Return Value

mixed

Exceptions

InvalidArgumentException

Structure getConfig()

Method to get property Config

Return Value

Structure

ModelRepository setConfig(Structure $config)

Method to set property config

Parameters

Structure $config

Return Value

ModelRepository Return self to support chaining.

string getName()

Method to get property Name

Return Value

string

ModelRepository setName(string $name)

Method to set property name

Parameters

string $name

Return Value

ModelRepository Return self to support chaining.

string getCacheId(string $id = null)

getStoredId

Parameters

string $id

Return Value

string

ModelRepository resetCache()

resetCache

Return Value

ModelRepository

Structure getState()

Get the model state.

Return Value

Structure The state object.

void setState(Structure $state)

Set the model state.

Parameters

Structure $state The state object.

Return Value

void

mixed get(string $key, mixed $default = null)

get

Parameters

string $key
mixed $default

Return Value

mixed

$this set(string $key, mixed $value)

set

Parameters

string $key
mixed $value

Return Value

$this

ModelRepository reset()

reset

Return Value

ModelRepository

boolean offsetExists(mixed $offset)

Is a property exists or not.

Parameters

mixed $offset Offset key.

Return Value

boolean

mixed offsetGet(mixed $offset)

Get a property.

Parameters

mixed $offset Offset key.

Return Value

mixed The value to return.

Exceptions

InvalidArgumentException

void offsetSet(mixed $offset, mixed $value)

Set a value to property.

Parameters

mixed $offset Offset key.
mixed $value The value to set.

Return Value

void

Exceptions

InvalidArgumentException

void offsetUnset(mixed $offset)

Unset a property.

Parameters

mixed $offset Offset key to unset.

Return Value

void

Exceptions

InvalidArgumentException

Structure __get(string $name)

__get

Parameters

string $name

Return Value

Structure

at line line 26
array getItems()

getItems

Return Value

array

at line line 65
RecursiveIteratorIterator getFiles()

getFiles

at line line 82
array getLastItem()

getLastItem

Return Value

array