Data
class Data implements DataInterface, IteratorAggregate, ArrayAccess, Countable (View source)
Data object to store values.
Methods
Constructor.
Get value.
Method to check a field exists.
Set value.
__isset
Get value.
__unset
Retrieve an external iterator
Is a property exists or not.
Get a property.
Set a value to property.
Unset a property.
Count this object.
Is this object empty?
Is this object has properties?
Dump all data as array
Apply a user supplied function to every member of this object.
Clone this object.
Details
at line line 23
__construct(mixed $data = null)
Constructor.
at line line 41
Data
bind(mixed $values, boolean $replaceNulls = false)
Bind the data into this object.
at line line 110
mixed
get(string $field, mixed $default = null)
Get value.
at line line 127
boolean
exists(string $field)
Method to check a field exists.
at line line 147
void
__set(string $field, mixed $value = null)
Set value.
at line line 159
boolean
__isset(string $field)
__isset
at line line 171
mixed
__get(string $field)
Get value.
at line line 183
void
__unset(string $name)
__unset
at line line 193
Traversable
getIterator()
Retrieve an external iterator
at line line 205
boolean
offsetExists(mixed $offset)
Is a property exists or not.
at line line 218
mixed
offsetGet(mixed $offset)
Get a property.
at line line 232
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
at line line 245
void
offsetUnset(mixed $offset)
Unset a property.
at line line 261
int
count()
Count this object.
at line line 271
boolean
isNull()
Is this object empty?
at line line 281
boolean
notNull()
Is this object has properties?
at line line 291
array
dump()
Dump all data as array
at line line 325
Data
walk(callable $callback, mixed $userdata = null)
Apply a user supplied function to every member of this object.
at line line 344
void
__clone()
Clone this object.