Entity
class Entity extends Data (View source)
Entity is a Data object sub class, we can set fields of this object then help us filter non necessary values to prevent error when inserting to database.
Constants
DUMP_ALL_DATA |
|
Methods
Constructor.
Magic getter to get a table field.
Method to check a field exists.
Set value.
__isset
Get value.
__unset
Get an iterator object.
Is a property exists or not.
Get a property.
Set a value to property.
Unset a property.
Count this object.
Is this object empty?
Dump all data as array
Apply a user supplied function to every member of this object.
Remove field from this entity.
Method to check a field exists or not.
Resolve alias.
Details
at line line 48
__construct(array $fields = null, mixed $data = null)
Constructor.
Data
bind(mixed $values, boolean $replaceNulls = false)
Bind the data into this object.
at line line 310
mixed
get(string $key, mixed $default = null)
Magic getter to get a table field.
at line line 391
boolean
exists(string $field)
Method to check a field exists.
at line line 250
void
__set(string $field, mixed $value = null)
Set value.
at line line 236
boolean
__isset(string $name)
__isset
at line line 262
mixed
__get(string $field)
Get value.
at line line 275
void
__unset(string $name)
__unset
at line line 185
Traversable
getIterator(bool $all = false)
Get an iterator object.
at line line 329
boolean
offsetExists(mixed $offset)
Is a property exists or not.
at line line 342
mixed
offsetGet(mixed $offset)
Get a property.
at line line 356
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
at line line 369
void
offsetUnset(mixed $offset)
Unset a property.
at line line 379
int
count()
Count this object.
at line line 401
boolean
isNull()
Is this object empty?
at line line 421
array
dump(bool $all = false)
Dump all data as array
Data
walk(callable $callback, mixed $userdata = null)
Apply a user supplied function to every member of this object.
at line line 170
boolean
hasField(string $name)
Method to check a field exists or not.
at line line 219
string
resolveAlias(string $name)
Resolve alias.