PHP Class Owl\Repositories\Fluent\TagRepository

Inheritance: extends AbstractFluent, implements Owl\Repositories\TagRepositoryInterface
Afficher le fichier Open project: owl/owl

Protected Properties

Свойство Type Description
$table

Méthodes publiques

Méthode Description
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.

Method Details

attachTags() public méthode

attach tags
public attachTags ( integer $item_id, array $tag_ids ) : stdClass
$item_id integer
$tag_ids array
Résultat stdClass

deleteFlowFlag() public méthode

Delete a flow tag settings.
public deleteFlowFlag ( $tag_id ) : boolean
$tag_id int tag_id
Résultat boolean

detachTags() public méthode

detach tags
public detachTags ( integer $item_id, array $tag_ids ) : stdClass
$item_id integer
$tag_ids array
Résultat stdClass

firstOrCreateByName() public méthode

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

getAll() public méthode

get all tags.
public getAll ( ) : Collection
Résultat Collection

getAllFlowTags() public méthode

get all flow tags.
public getAllFlowTags ( ) : Collection
Résultat Collection

getAllUsedTags() public méthode

get all used tags.
public getAllUsedTags ( ) : array
Résultat array

getById() public méthode

get a tag by tag id.
public getById ( integer $id ) : void
$id integer
Résultat void

getByItemId() public méthode

get tags by item_id.
public getByItemId ( integer $item_id ) : void
$item_id integer
Résultat void

getByName() public méthode

get a tag by tag name.
public getByName ( string $name ) : void
$name string
Résultat void

getTableName() public méthode

Get a table name.
public getTableName ( ) : string
Résultat string

syncTags() public méthode

sync tags
public syncTags ( object $item, array $tag_ids ) : void
$item object
$tag_ids array
Résultat void

updateFlowFlag() public méthode

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

Property Details

$table protected_oe property

protected $table