PHP Class Owl\Services\TagService

Inheritance: extends Service
Afficher le fichier Open project: owl/owl

Protected Properties

Свойство Type Description
$searchService
$tagRepo

Méthodes publiques

Méthode Description
__construct ( Owl\Repositories\TagRepositoryInterface $tagRepo, SearchService $searchService )
deleteFlowFlag ( $tag_id ) : boolean Delete a flow tag settings.
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.
getTagIdsByTagNames ( array $tag_names ) : array get tag ids by tag names.
syncTags ( object $item, array $tag_ids ) : void sync tags
updateFlowFlag ( $tag_id, $flag = true ) : Illuminate\Database\Eloquent\Model Update a tag's flow_flag.

Method Details

__construct() public méthode

public __construct ( Owl\Repositories\TagRepositoryInterface $tagRepo, SearchService $searchService )
$tagRepo Owl\Repositories\TagRepositoryInterface
$searchService SearchService

deleteFlowFlag() public méthode

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

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

getByName() public méthode

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

getTagIdsByTagNames() public méthode

get tag ids by tag names.
public getTagIdsByTagNames ( array $tag_names ) : array
$tag_names array
Résultat array

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 ( $tag_id, $flag = true ) : Illuminate\Database\Eloquent\Model
Résultat Illuminate\Database\Eloquent\Model

Property Details

$searchService protected_oe property

protected $searchService

$tagRepo protected_oe property

protected $tagRepo