PHP Class Owl\Repositories\Eloquent\TagRepository

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

Protected Properties

Свойство Type Description
$tag
$tagFts

Méthodes publiques

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

Method Details

__construct() public méthode

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

deleteFlowFlag() public méthode

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

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 ) : Collection
$id integer
Résultat Collection

getByName() public méthode

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

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

$tag protected_oe property

protected $tag

$tagFts protected_oe property

protected $tagFts