Method |
Description |
|
__construct ( $args = [] ) |
|
|
__get ( $name ) |
|
|
__isset ( $name ) |
|
|
__set ( $name, $val ) |
|
|
__toString ( ) |
|
|
__unset ( $name ) |
|
|
clear ( ) |
Delete all the attributes in this model |
|
fetch ( ) |
Populate this model from permanent storage |
|
from_json ( &$data ) |
Create a new model from json data sent over the wire |
|
initialize ( $args ) |
Call initialize when the model is created |
|
parse ( &$data ) |
Process the raw data from permanent storage |
|
reload ( &$data ) |
Update this model with data from permanent storage |
|
save ( ) |
Write the data in this model to permanent storage |
|
set ( $args, $fetching = false ) |
Set a bunch of attributes at once |
|
set_from_json ( &$data ) |
Update this model from json data sent over the wire |
|
to_json ( ) |
Returns an assoc array of this model's data to send over the wire |
|
validate ( ) |
Validate the data in this model |
|
values ( ) |
Returns an array of selected values
TODO: Return all values if no params are given |
|