PHP Interface Owl\Repositories\TagRepositoryInterface

Show file Open project: owl/owl

Public Methods

Method Description
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 ) : void get a tag by tag id.
getByName ( string $name ) : void 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.

Method Details

deleteFlowFlag() public method

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

firstOrCreateByName() public method

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

getAll() public method

get all tags.
public getAll ( ) : Collection
return Collection

getAllFlowTags() public method

get all flow tags.
public getAllFlowTags ( ) : Collection
return Collection

getAllUsedTags() public method

get all used tags.
public getAllUsedTags ( ) : array
return array

getById() public method

get a tag by tag id.
public getById ( integer $id ) : void
$id integer
return void

getByName() public method

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

syncTags() public method

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

updateFlowFlag() public method

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