Model Class
This is a parent class that all PICKLES data models should be extending. When using the class as designed, objects will function as active record pattern objects.
Located in /classes/Model.php (line 25)
Object | --Model
Cache Object
Collection Name
For compatibility with the naming conventions used by MongoDB, the collection name can be specified. If the collection name is set, it will set the table name value to it and proceed as normal.
Conditions
Datasource
Database Object
Delayed Insert
Field List
Group
Having
[Index] Hints
ID Column
Ignore Unique Index
Joins
Limit
Offset
Order
Insert Priority
Defaults to false (normal priority) but can be set to "low" or "high"
Record
Records
Replace instead of Insert/Update?
Query Results
Table Name
Whether or not to use cache
Constructor
Creates a new (empty) object or populates the record set.
Commit
Inserts or updates a record in the database.
Count Records
Counts the records
Delete Record
Deletes the current record from the database
End Record
Set the pointer to the last element of the record set.
Execute
Potentially populates the record set from the passed arguments.
First Record
Alias of reset(). "first" is more intuitive to me, but reset stays in line with the built in PHP functions.
Last Record
Alias of end(). "last" is more intuitive to me, but end stays in line with the built in PHP functions.
Next Record
Increment the record array to the next member of the record set.
Previous Record
Decrement the record array to the next member of the record set.
Reset Record
Set the pointer to the first element of the record set.
Shuffle Records
Sorts the records in a pseudo-random order.
Sort Records
Sorts the records by the specified index in the specified order.
Unescape String
Assuming magic quotes is turned on, strips slashes from the string
Walk Records
Returns the current record and advances to the next. Built to allow for simplified code when looping through a record set.
Documentation generated on Wed, 03 Oct 2012 17:46:05 -0400 by phpDocumentor 1.4.4