creocoder\taggable\TaggableBehavior::hasTagValues PHP 메소드

hasTagValues() 공개 메소드

Returns a value indicating whether tags exists.
public hasTagValues ( string | string[] $values ) : boolean
$values string | string[]
리턴 boolean
    public function hasTagValues($values)
    {
        $tagValues = $this->getTagValues(true);
        foreach ($this->filterTagValues($values) as $value) {
            if (!in_array($value, $tagValues)) {
                return false;
            }
        }
        return true;
    }