PHP 클래스 Owl\Repositories\Fluent\TagRepository

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

보호된 프로퍼티들

프로퍼티 타입 설명
$table

공개 메소드들

메소드 설명
attachTags ( integer $item_id, array $tag_ids ) : stdClass attach tags
deleteFlowFlag ( $tag_id ) : boolean Delete a flow tag settings.
detachTags ( integer $item_id, array $tag_ids ) : stdClass detach tags
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 ) : void get a tag by tag id.
getByItemId ( integer $item_id ) : void get tags by item_id.
getByName ( string $name ) : void get a tag by tag name.
getTableName ( ) : string Get a table 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.

메소드 상세

attachTags() 공개 메소드

attach tags
public attachTags ( integer $item_id, array $tag_ids ) : stdClass
$item_id integer
$tag_ids array
리턴 stdClass

deleteFlowFlag() 공개 메소드

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

detachTags() 공개 메소드

detach tags
public detachTags ( integer $item_id, array $tag_ids ) : stdClass
$item_id integer
$tag_ids array
리턴 stdClass

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 ) : void
$id integer
리턴 void

getByItemId() 공개 메소드

get tags by item_id.
public getByItemId ( integer $item_id ) : void
$item_id integer
리턴 void

getByName() 공개 메소드

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

getTableName() 공개 메소드

Get a table name.
public getTableName ( ) : string
리턴 string

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

프로퍼티 상세

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

protected $table