\Pop\ModelAbstractModel

Pop abstract model class

Summary

Methods
Properties
Constants
__construct()
count()
getIterator()
toArray()
__get()
__set()
__isset()
__unset()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
No public properties found
No constants found
No protected methods found
$data
N/A
No private methods found
No private properties found
N/A

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