Package: Record\Mixin
Parameters: |
|
---|
Fires whenever deleting a record that is taggable This will actually delete all the references to a specific tag for a specific record
Returns: | void |
---|
Add tags to this record’s search text.
Parameters: |
|
---|
Retrieve all the Taggings objects that represent between a specific tag and the current record Called by whatever record has enabled this module
Returns: | array of Taggings |
---|
Get all the Tag records associated with this record
Parameters: |
|
---|---|
Returns: | array of Tag |
Delete a tag from the record
Parameters: |
|
---|---|
Returns: | bool Returns whether a tag in $tags was deleted. Returns false if $tags is empty. Returns true if at least one tag in $tags is deleted. |
If the $tag were a string and the keys of Tags were just the names of the tags, this would be: in_array(array_keys($this->Tags))
Parameters: |
|
---|---|
Returns: | boolean |
Converts a delimited string of tags into an array of tag strings
Parameters: |
|
---|---|
Returns: | array An array of tag strings |
Add tags for the record
Parameters: |
|
---|---|
Returns: | void |
Calculate the difference between a tag string and a set of tags
Parameters: |
|
---|---|
Returns: | array Keys(‘removed’,’added’) |
This will add tags that are in the tag string and remove those that are no longer in the tag string
Parameters: |
|
---|---|
Returns: | void |