Tag¶
- class Tag¶
Package: Record
A tag and its metadata.
- property name¶
- __toString()¶
- _delete()¶
Must also delete the taggings associated with this tag
Returns: void
- _validate()¶
- fieldIsUnique($field, $value)¶
The check for unique tag names must take into account CASE SENSITIVITY, which is accomplished via COLLATE utf8_bin sql
Parameters: - $field (unknown) –
- $value (unknown) –
Returns: bool
- rename(array $new_names)¶
Rename a tag.
Any records tagged with the “old” tag will be tagged with eachof the tags given in $new_names. The original tag will bedeleted (unless it is given as one of the $new_names).
Parameters: - $new_names (array) – Names of the tags this one should be renamed to.
Returns: void