Table_Collection¶
- class Table_Collection¶
Package: Db\Table
- applySearchFilters($select, $params)¶
Parameters: - $select (unknown) –
- $params (unknown) –
- _getColumnPairs()¶
- findPairsForSelectForm($options = Array)¶
Parameters: - $options (unknown) –
- getSelect()¶
Apply permissions checks to all SQL statements retrieving collections from the table
Returns: void
- findRandomFeatured()¶
- filterByPublic($select, $isPublic)¶
Apply a filter to the collections based on whether or not they are public
Parameters: - $select (unknown) –
- $isPublic (unknown) –
Returns: void
- filterByFeatured($select, $isFeatured)¶
Apply a filter to the collections based on whether or not they are featured
Parameters: - $select (unknown) –
- $isFeatured (unknown) –
Returns: void
- applySorting(Omeka_Db_Select $select, string $sortField, string $sortDir)¶
Enables sorting based on ElementSet,Element field strings.
Parameters: - $select (Omeka_Db_Select) –
- $sortField (string) – Field to sort on
- $sortDir (string) – Sorting direction (ASC or DESC)