Table_Element¶
- class Table_Element¶
Package: Db\Table
- findByRecordType($recordTypeName)¶
Find all the Element records that have a specific record type or the record type ‘All’, indicating that these elements would apply to any record type.
Parameters: - $recordTypeName (unknown) –
Returns: array
- getSelect()¶
Overriding getSelect() to always return the type_name and type_regex for retrieved elements.
Returns: Omeka_Db_Select
- _getColumnPairs()¶
Return the element’s name and id for <select> tags on it.
Returns: void
- orderElements($select)¶
Parameters: - $select (unknown) –
- findBySet($elementSet)¶
Retrieve all elements for a set.
Parameters: - $elementSet (unknown) –
Returns: Element
- findByItemType($itemTypeId)¶
Retrieve a set of Element records that belong to a specific Item Type.
Parameters: - $itemTypeId (unknown) –
Returns: array Set of element records.
- findByElementSetNameAndElementName($elementSetName, $elementName)¶
Parameters: - $elementSetName (unknown) –
- $elementName (unknown) –
- applySearchFilters(Omeka_Db_Select $select, array $params)¶
Manipulate a Select object based on a set of criteria.
Parameters: - $select (Omeka_Db_Select) –
- $params (array) –
Possible parameters include:
- record_types - array - Usually one or more of the following: All, Item, File
- sort - string - One of the following values: alpha
- element_set_name - string - Name of the element set to which results should belong.
- findPairsForSelectForm(array $options = Array)¶
Override parent class method to retrieve a multidimensional array of elements, organized by element set, to be used in Zend’s FormSelect view helper.
Parameters: - $options (array) – Set of parameters for searching/filtering results.
Returns: array