PHP 클래스 Owl\Repositories\Eloquent\TagRepository

상속: implements Owl\Repositories\TagRepositoryInterface
파일 보기 프로젝트 열기: owl/owl

보호된 프로퍼티들

프로퍼티 타입 설명
$tag
$tagFts

공개 메소드들

메소드 설명
__construct ( Tag $tag, TagFts $tagFts )
deleteFlowFlag ( $tag_id ) : boolean Delete a flow tag settings.
firstOrCreateByName ( string $name ) : Illuminate\Database\Eloquent\Model get a tag or Create a tag.
getAll ( ) : Collection get all tags.
getAllFlowTags ( ) : Collection get all flow tags.
getAllUsedTags ( ) : array get all used tags.
getById ( integer $id ) : Collection get a tag by tag id.
getByName ( string $name ) : Collection get a tag by tag name.
syncTags ( object $item, array $tag_ids ) : void sync tags
updateFlowFlag ( integer $tag_id, boolean $flag = true ) : Illuminate\Database\Eloquent\Model Update a tag's flow_flag.

메소드 상세

__construct() 공개 메소드

public __construct ( Tag $tag, TagFts $tagFts )
$tag Owl\Repositories\Eloquent\Models\Tag
$tagFts Owl\Repositories\Eloquent\Models\TagFts

deleteFlowFlag() 공개 메소드

Delete a flow tag settings.
public deleteFlowFlag ( $tag_id ) : boolean
$tag_id int tag_id
리턴 boolean

firstOrCreateByName() 공개 메소드

get a tag or Create a tag.
public firstOrCreateByName ( string $name ) : Illuminate\Database\Eloquent\Model
$name string
리턴 Illuminate\Database\Eloquent\Model

getAll() 공개 메소드

get all tags.
public getAll ( ) : Collection
리턴 Collection

getAllFlowTags() 공개 메소드

get all flow tags.
public getAllFlowTags ( ) : Collection
리턴 Collection

getAllUsedTags() 공개 메소드

get all used tags.
public getAllUsedTags ( ) : array
리턴 array

getById() 공개 메소드

get a tag by tag id.
public getById ( integer $id ) : Collection
$id integer
리턴 Collection

getByName() 공개 메소드

get a tag by tag name.
public getByName ( string $name ) : Collection
$name string
리턴 Collection

syncTags() 공개 메소드

sync tags
public syncTags ( object $item, array $tag_ids ) : void
$item object
$tag_ids array
리턴 void

updateFlowFlag() 공개 메소드

Update a tag's flow_flag.
public updateFlowFlag ( integer $tag_id, boolean $flag = true ) : Illuminate\Database\Eloquent\Model
$tag_id integer
$flag boolean
리턴 Illuminate\Database\Eloquent\Model

프로퍼티 상세

$tag 보호되어 있는 프로퍼티

protected $tag

$tagFts 보호되어 있는 프로퍼티

protected $tagFts