|
Previous Page |
Solar_Model_Nodes_Bookmarks |
Next Page |
countPagesRelated()
public
array
countPagesRelated (
Solar_Sql_Model_Record $record,
string $name,
array $params default NULL
)
Counts the number of records in a related model for a given record.
Inherited from Solar_Sql_Model.
Parameters
- (Solar_Sql_Model_Record)
$record: The record to count related pages for. - (string)
$name: The name of the relationship to count pages for. - (array)
$params: Parameters for the related SELECT; honors keys for 'where', 'having', 'group', and 'paging'.
Returns
- (array) An array with keys 'count' (the count of records) and 'pages' (the number of pages of records).
Description
Counts the number of records in a related model for a given record.
Local
- Overview
- Constants
- Properties
- Methods
- __call()
- __construct()
- __destruct()
- __get()
- _addFilter()
- _addRelated()
- _belongsTo()
- _createTableAndIndexes()
- _exception()
- _fetchAll()
- _fetchAssoc()
- _fixFilters()
- _fixIndex()
- _fixModelName()
- _fixOrder()
- _fixPropertyCols()
- _fixStack()
- _fixTableCols()
- _fixTableName()
- _fixTagList()
- _hasMany()
- _hasOne()
- _newSelectByTags()
- _setup()
- apiVersion()
- countPages()
- countPagesByTags()
- countPagesRelated()
- delete()
- dump()
- fetch()
- fetchAll()
- fetchAllByTags()
- fetchAssoc()
- fetchCol()
- fetchNew()
- fetchOne()
- fetchPairs()
- fetchRelatedArray()
- fetchRelatedObject()
- fetchValue()
- fixSelectParams()
- getPaging()
- getRelated()
- insert()
- locale()
- newCollection()
- newRecord()
- newSelect()
- serializeCols()
- setPaging()
- unserializeCols()
- update()