Table_Tag

Package: Db\Table

class Table_Tag

extends Omeka_Db_Table

Table_Tag::findOrNew($name)
Parameters:
  • $name
Table_Tag::filterByRecord($select, $record)

Filter a SELECT statement based on an Omeka_Record_AbstractRecord instance

Parameters:
  • $select
  • $record
Table_Tag::applySorting($select, $sortField, $sortDir)

Apply custom sorting for tags.

This also applies the normal, built-in sorting.

Parameters:
  • $select (Omeka_Db_Select) –
  • $sortField (string) – Sorting field.
  • $sortDir (string) – Sorting direction, suitable for direct inclusion in SQL (ASC or DESC).
Table_Tag::filterByTagType($select, $type)

Filter SELECT statement based on the type of tags to view (Item, Exhibit, etc.)

Parameters:
  • $select
  • $type
Table_Tag::filterByTagNameLike($select, $partialTagName)

Filter SELECT statement based on whether the tag contains the partial tag name

Parameters:
  • $select
  • $partialTagName
Table_Tag::applySearchFilters($select, $params = array())

Retrieve a certain number of tags

Parameters:
  • $select
  • $params (array) – ‘limit’ => integer ‘record’ => instanceof Omeka_Record_AbstractRecord ‘like’ => partial_tag_name ‘type’ => tag_type
Table_Tag::getSelect()
Returns:Omeka_Db_Select
Table_Tag::getSelectForCount($params = array())
Parameters:
  • $params
Table_Tag::findTagNamesLike($partialName, $limit = 10)
Parameters:
  • $partialName
  • $limit