|
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.
addFilter()- Adds a column filter to this record instance.
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).
getChanged()- Gets a list of all changed table columns.
getInvalid()- Returns the validation failure message for one or more properties.
getModel()- Returns the model from which the data originates.
getPrimaryCol()- Gets the name of the primary-key column.
getPrimaryVal()- Gets the value of the primary-key column.
getSaveException()- Returns the exception (if any) generated by the most-recent call to the save() method.
getStatus()- Returns the status of this record.
increment()- Increments the value of a column immediately at the database and retains the incremented value in the record.
isChanged()- Tells if a particular table-column has changed.
key()- Iterator: get the current key for the array pointer.
load()- Loads the struct with data from an array or another struct.
locale()- Overrides normal locale() to use the model locale strings.
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 and all related records to the database, inserting or updating as needed.
saveInTransaction()- Perform a save() within a transaction, with automatic commit and rollback.
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.
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.
_postSaveRelated()- User-defined logic to execute after saving related records.
_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.
_preSaveRelated()- User-defined logic to execute before saving related records.
_preUpdate()- User-defined pre-update logic.
_save()- Saves the current record, but only if the record is "dirty".
_saveRelated()- Saves each related record.
_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()
- _postSaveRelated()
- _postUpdate()
- _preDelete()
- _preFilter()
- _preInsert()
- _preSave()
- _preSaveRelated()
- _preUpdate()
- _save()
- _saveRelated()
- _update()
- addFilter()
- apiVersion()
- count()
- current()
- delete()
- dump()
- filter()
- form()
- getChanged()
- getInvalid()
- getModel()
- getPrimaryCol()
- getPrimaryVal()
- getSaveException()
- getStatus()
- increment()
- isChanged()
- key()
- load()
- locale()
- next()
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()
- refresh()
- rewind()
- save()
- saveInTransaction()
- setInvalid()
- setInvalids()
- setModel()
- setStatus()
- toArray()
- valid()