Tag
Package: Record
- class Tag
extends Omeka_Record_AbstractRecord
A tag and its metadata.
- property Tag::$name
string
The tag text.
- Tag::__toString()
Use the tag text when using this record as a string.
- Returns:
string
- Tag::_delete()
Delete handling for a tag.
Delete the taggings associated with this tag.
- Tag::_validate()
Validate this tag.
The tag “name” must be non-empty and unique.
- Tag::rename($new_names)
Rename a tag.
Any records tagged with the “old” tag will be tagged with each of the tags given in $new_names. The original tag will be deleted (unless it is given as one of the $new_names).
- Parameters:
$new_names (
array
) – Names of the tags this one should be renamed to.