Свойство | Тип | Описание | |
---|---|---|---|
$tagFrequencyAttribute | the tags model frequency attribute name | ||
$tagRelation | the tags relation name | ||
$tagValueAttribute | the tags model value attribute name | ||
$tagValuesAsArray | whether to return tags as array instead of string |
Метод | Описание | |
---|---|---|
addTagValues ( string | string[] $values ) | Adds tags. | |
afterSave ( ) : void | ||
beforeDelete ( ) : void | ||
events ( ) | ||
filterTagValues ( string | string[] $values ) : string[] | Filters tags. | |
getTagValues ( boolean | null $asArray = null ) : string | string[] | Returns tags. | |
hasTagValues ( string | string[] $values ) : boolean | Returns a value indicating whether tags exists. | |
removeAllTagValues ( ) | Removes all tags. | |
removeTagValues ( string | string[] $values ) | Removes tags. | |
setTagValues ( string | string[] $values ) | Sets tags. |
public addTagValues ( string | string[] $values ) | ||
$values | string | string[] |
public filterTagValues ( string | string[] $values ) : string[] | ||
$values | string | string[] | |
Результат | string[] |
public hasTagValues ( string | string[] $values ) : boolean | ||
$values | string | string[] | |
Результат | boolean |
public removeTagValues ( string | string[] $values ) | ||
$values | string | string[] |
public setTagValues ( string | string[] $values ) | ||
$values | string | string[] |
public $tagFrequencyAttribute |