PHP 클래스 creocoder\taggable\TaggableBehavior

저자: Alexander Kochetov ([email protected])
상속: extends yii\base\Behavior
파일 보기 프로젝트 열기: creocoder/yii2-taggable 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

addTagValues() 공개 메소드

Adds tags.
public addTagValues ( string | string[] $values )
$values string | string[]

afterSave() 공개 메소드

public afterSave ( ) : void
리턴 void

beforeDelete() 공개 메소드

public beforeDelete ( ) : void
리턴 void

events() 공개 메소드

public events ( )

filterTagValues() 공개 메소드

Filters tags.
public filterTagValues ( string | string[] $values ) : string[]
$values string | string[]
리턴 string[]

getTagValues() 공개 메소드

Returns tags.
public getTagValues ( boolean | null $asArray = null ) : string | string[]
$asArray boolean | null
리턴 string | string[]

hasTagValues() 공개 메소드

Returns a value indicating whether tags exists.
public hasTagValues ( string | string[] $values ) : boolean
$values string | string[]
리턴 boolean

removeAllTagValues() 공개 메소드

Removes all tags.
public removeAllTagValues ( )

removeTagValues() 공개 메소드

Removes tags.
public removeTagValues ( string | string[] $values )
$values string | string[]

setTagValues() 공개 메소드

Sets tags.
public setTagValues ( string | string[] $values )
$values string | string[]

프로퍼티 상세

$tagFrequencyAttribute 공개적으로 프로퍼티

the tags model frequency attribute name
public $tagFrequencyAttribute

$tagRelation 공개적으로 프로퍼티

the tags relation name
public $tagRelation

$tagValueAttribute 공개적으로 프로퍼티

the tags model value attribute name
public $tagValueAttribute

$tagValuesAsArray 공개적으로 프로퍼티

whether to return tags as array instead of string
public $tagValuesAsArray