|
Previous Class |
Solar_Example_Model_TestSolarFoo_Bar |
Next Page |
Solar_Example_Model_TestSolarFoo_Bar
Example for testing a "bar" model (inherited from test_solar_foo).
Catalog
This class is part of the Solar_Example package.
Inheritance:
- Solar_Base
- Solar_Sql_Model
- Solar_Example_Model_TestSolarFoo
- Solar_Example_Model_TestSolarFoo_Bar
- Solar_Example_Model_TestSolarFoo
- Solar_Sql_Model
Constants
None.
Public Properties
The Solar_Example_Model_TestSolarFoo_Bar class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Example_Model_TestSolarFoo_Bar class.
You can also view the list of all public, protected, and private methods.
__call()- Magic call implements "fetchOneBy...()" and "fetchAllBy...()" for columns listed in the method name.
__construct()- Constructor.
__destruct()- Call this before you unset the instance so that you release the memory from all the internal child objects.
__get()- Read-only access to protected model properties.
apiVersion()- Reports the API version for this class.
countPages()- Fetches count and pages of available records.
countPagesRelated()- Counts the number of records in a related model for a given record.
delete()- Deletes rows from the model table.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
fetch()- Fetches a record or collection by primary key value(s).
fetchAll()- Fetches all records by arbitrary parameters.
fetchAssoc()- The same as fetchAll(), except the record collection is keyed on the first column of the results (instead of being a strictly sequential array.) Recognized parameters for the fetch are:
cols: (string|array) Return only these columns. fetchCol()- Fetches a sequential array of values from the model, using only the first column of the results.
fetchNew()- Returns a new record with default values.
fetchOne()- Fetches one record by arbitrary parameters.
fetchPairs()- Fetches an array of key-value pairs from the model, where the first column is the key and the second column is the value.
fetchRelatedArray()- Given a record, fetches related data for a named relationship as an array.
fetchRelatedObject()- Given a record, fetches a related record or collection for a named relationship.
fetchValue()- Fetches a single value from the model (i.e., the first column of the first record of the returned page set).
fixSelectParams()- "Cleans up" SELECT clause parameters.
getPaging()- Gets the number of records per page.
getRelated()- Gets the control object for a named relationship.
insert()- Inserts one row to the model table.
locale()- Looks up class-specific locale strings based on a key.
newCollection()- Returns the appropriate collection object for this model.
newRecord()- Returns the appropriate record object for an inheritance model.
newSelect()- Returns a new Solar_Sql_Select tool, with the proper SQL object injected automatically, and with eager "to-one" associations joined.
serializeCols()- Serializes data values in-place based on $this->_serialize_cols.
setPaging()- Sets the number of records per page.
unserializeCols()- Unerializes data values in-place based on $this->_serialize_cols.
update()- Updates rows in the model table.
Local
- Overview
- Constants
- Properties
- Methods
- __call()
- __construct()
- __destruct()
- __get()
- _addFilter()
- _addRelated()
- _belongsTo()
- _createTableAndIndexes()
- _exception()
- _fetchAll()
- _fetchAssoc()
- _fixFilters()
- _fixIndex()
- _fixModelName()
- _fixOrder()
- _fixPropertyCols()
- _fixStack()
- _fixTableCols()
- _fixTableName()
- _hasMany()
- _hasOne()
- _setup()
- apiVersion()
- countPages()
- countPagesRelated()
- delete()
- dump()
- fetch()
- fetchAll()
- fetchAssoc()
- fetchCol()
- fetchNew()
- fetchOne()
- fetchPairs()
- fetchRelatedArray()
- fetchRelatedObject()
- fetchValue()
- fixSelectParams()
- getPaging()
- getRelated()
- insert()
- locale()
- newCollection()
- newRecord()
- newSelect()
- serializeCols()
- setPaging()
- unserializeCols()
- update()