|
Previous Page |
Next Page |
Methods
Public
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
__get()- Magic getter for record properties; automatically calls __getColName() methods when they exist.
__isset()- Checks if a data key is set.
__set()- Magic setter for record properties; automatically calls __setColName() methods when they exist.
__unset()- Sets a key in the data to null.
apiVersion()- Reports the API version for this class.
count()- Countable: how many keys are there?
current()- Iterator: get the current value for the array pointer.
delete()- Deletes this record from the database.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
filter()- Filter the data.
form()- Returns a Solar_Form object pre-populated with column properties, values, and filters ready for processing (all based on the model for this record).
getInvalid()- Returns the validation failure message for one or more properties.
getModel()- Returns the model from which the data originates.
getRelatedPage()- Returns the current page number for a named relation.
getStatus()- Returns the status of this record.
key()- Iterator: get the current key for the array pointer.
load()- Loads the struct with data from an array or another struct.
locale()- Looks up class-specific locale strings based on a key.
next()- Iterator: move to the next position.
offsetExists()- ArrayAccess: does the requested key exist?
offsetGet()- ArrayAccess: get a key value.
offsetSet()- ArrayAccess: set a key value.
offsetUnset()- ArrayAccess: unset a key.
refresh()- Refreshes data for this record from the database.
rewind()- Iterator: move to the first position.
save()- Saves this record to the database, inserting or updating as needed.
setInvalid()- Forces one property to be "invalid" and sets a validation failure message for it.
setInvalids()- Forces multiple properties to be "invalid" and sets validation failure message for them.
setModel()- Injects the model from which the data originates.
setRelatedPage()- Sets the page number for a named relation, so that only records from that page are loaded.
setStatus()- Forces the status of this record.
toArray()- Converts the properties of this model Record or Collection to an array, including related models stored in properties.
valid()- Iterator: is the current position valid?
Protected
_checkDeleted()- Throws an exception if this record status is 'deleted'.
_exception()- Convenience method for returning exceptions with localized text.
_insert()- Inserts the current record into the database, making calls to pre- and post-insert logic.
_postDelete()- User-defined post-delete logic.
_postFilter()- User-defined logic executed after filters are applied to the record data.
_postInsert()- User-defined post-insert logic.
_postSave()- User-defined post-save logic.
_postUpdate()- User-defined post-update logic.
_preDelete()- User-defined pre-delete logic.
_preFilter()- User-defined logic executed before filters are applied to the record data.
_preInsert()- User-defined pre-insert logic.
_preSave()- User-defined pre-save logic.
_preUpdate()- User-defined pre-update logic.
_update()- Updates the current record at the database, making calls to pre- and post-update logic.
Private
None.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __get()
- __isset()
- __set()
- __unset()
- _checkDeleted()
- _exception()
- _insert()
- _postDelete()
- _postFilter()
- _postInsert()
- _postSave()
- _postUpdate()
- _preDelete()
- _preFilter()
- _preInsert()
- _preSave()
- _preUpdate()
- _update()
- apiVersion()
- count()
- current()
- delete()
- dump()
- filter()
- form()
- getInvalid()
- getModel()
- getRelatedPage()
- getStatus()
- key()
- load()
- locale()
- next()
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()
- refresh()
- rewind()
- save()
- setInvalid()
- setInvalids()
- setModel()
- setRelatedPage()
- setStatus()
- toArray()
- valid()