PHP Class creocoder\taggable\TaggableQueryBehavior

Author: Alexander Kochetov ([email protected])
Inheritance: extends yii\base\Behavior
Datei anzeigen Open project: creocoder/yii2-taggable Class Usage Examples

Public Methods

Method Description
allTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery Gets entities by all tags.
anyTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery Gets entities by any tags.
relatedByTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery Gets entities related by tags.

Method Details

allTagValues() public method

Gets entities by all tags.
public allTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery
$values string | string[]
$attribute string | null
return yii\db\ActiveQuery the owner

anyTagValues() public method

Gets entities by any tags.
public anyTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery
$values string | string[]
$attribute string | null
return yii\db\ActiveQuery the owner

relatedByTagValues() public method

Gets entities related by tags.
public relatedByTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery
$values string | string[]
$attribute string | null
return yii\db\ActiveQuery the owner