Method |
Description |
|
__call ( string $method, array $args ) : mixed | Object |
Set/Get attribute wrapper |
|
__construct ( ) |
Initialize constructor |
|
__toArray ( array $array = [] ) : array |
Convert object attributes to array |
|
addData ( array $array ) : Object |
Add data to the object. |
|
getData ( string $key = '', string | integer $index = null ) : mixed |
Retrieves data from the object |
|
getOrigData ( string $key = null ) : mixed |
Get Original data |
|
hasData ( string $key = '' ) : boolean |
If $key is empty, checks whether there's any data in the object
Otherwise checks if the specified attribute is set. |
|
hasDataChangedFor ( string $field ) : boolean |
Check if data has changed |
|
init ( ) : void |
Initialize data |
|
offsetExists ( string $offset ) : boolean |
Implementation of ArrayAccess::offsetExists() |
|
offsetGet ( string $offset ) : mixed |
Implementation of ArrayAccess::offsetGet() |
|
offsetSet ( string $offset, mixed $value ) : void |
Implementation of ArrayAccess::offsetSet() |
|
offsetUnset ( string $offset ) : void |
Implementation of ArrayAccess::offsetUnset() |
|
setData ( string | array $key, mixed $value = null ) : Object |
Overwrite data in the object. |
|
setOrigData ( string $key = null, mixed $data = null ) : Object |
Set Original data |
|
toArray ( array $array = [] ) : array |
Public wrapper for __toArray |
|
toJson ( array $array = [] ) : string |
Public wrapper for __toJson |
|
toString ( string $format = '' ) : string |
Public wrapper for __toString |
|
toXml ( array $array = [], string $rootName = 'item', boolean $addOpenTag = false, boolean $addCdata = true ) : string |
Public wrapper for __toXml |
|
unsetData ( string $key = null ) : Object |
Unset data from the object. |
|