|
Previous Page |
Solar_Model_Taggings |
Next Page |
fetchValue()
public
mixed
fetchValue (
array $params default array ()
)
Fetches a single value from the model (i.e., the first column of the first record of the returned page set).
Inherited from Solar_Sql_Model.
Parameters
- (array)
$params: An array of parameters for the fetch, with keys for 'cols', 'where', 'group', 'having, and 'order'.
Returns
- (mixed) The single value from the model query, or null.
Description
Fetches a single value from the model (i.e., the first column of the first record of the returned page set).
Recognized parameters for the fetch are:
cols- (string|array) Return only these columns; only the first one will be honored.
where- (string|array) A Solar_Sql_Select::multiWhere() value parameter to restrict which records are returned.
group- (string|array) GROUP BY these columns.
having- (string|array) HAVING these column values.
order- (string|array) ORDER BY these columns.
paging- (int) Return this many records per page.
page- (int) Return only elements from this page-number.
bind- (array) Key-value pairs to bind into the query.
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()