Properties

$data

$data : array

Model data array

Type

array

Methods

__construct()

__construct(array  $data = array()) 

Constructor

Instantiate a model object

Parameters

array $data

count()

count() : integer

Method to get the count of items in the model

Returns

integer

getIterator()

getIterator() : \ArrayIterator

Method to iterate over the data

Returns

\ArrayIterator

toArray()

toArray() : array

Return all model data as an array

Returns

array

__get()

__get(string  $name) : mixed

Magic get method to return the value of data[$name].

Parameters

string $name

Returns

mixed

__set()

__set(string  $name, mixed  $value) : void

Magic set method to set the property to the value of data[$name].

Parameters

string $name
mixed $value

__isset()

__isset(string  $name) : boolean

Return the isset value of data[$name].

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset data[$name].

Parameters

string $name

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess offsetExists

Parameters

mixed $offset

Returns

boolean

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess offsetGet

Parameters

mixed $offset

Returns

mixed

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

ArrayAccess offsetSet

Parameters

mixed $offset
mixed $value

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess offsetUnset

Parameters

mixed $offset

install()

install(string  $location, string  $namespace) : void

Install method

Parameters

string $location
string $namespace

installCli()

installCli(string  $location, string  $namespace) : void

Install with CLI method

Parameters

string $location
string $namespace

createHttpConfig()

createHttpConfig(string  $location, string  $namespace) : void

Create HTTP config method

Parameters

string $location
string $namespace

createConsoleConfig()

createConsoleConfig(string  $location, string  $namespace) : void

Create console config method

Parameters

string $location
string $namespace

createHttpFrontController()

createHttpFrontController(string  $location, string  $namespace) : void

Create HTTP front controller method

Parameters

string $location
string $namespace

createHttpController()

createHttpController(string  $location, string  $namespace) : void

Create HTTP controller method

Parameters

string $location
string $namespace

createConsoleFrontController()

createConsoleFrontController(string  $location, string  $namespace) : void

Create console front controller method

Parameters

string $location
string $namespace

createConsoleController()

createConsoleController(string  $location, string  $namespace) : void

Create console controller method

Parameters

string $location
string $namespace

createModule()

createModule(string  $location, string  $namespace, boolean  $cli = false) : void

Create module method

Parameters

string $location
string $namespace
boolean $cli

createViews()

createViews(string  $location) : void

Create views method

Parameters

string $location