PHP 클래스 Owl\Services\TagService

상속: extends Service
파일 보기 프로젝트 열기: owl/owl

보호된 프로퍼티들

프로퍼티 타입 설명
$searchService
$tagRepo

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

deleteFlowFlag() 공개 메소드

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

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

getByName() 공개 메소드

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

getTagIdsByTagNames() 공개 메소드

get tag ids by tag names.
public getTagIdsByTagNames ( array $tag_names ) : array
$tag_names array
리턴 array

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

프로퍼티 상세

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

protected $searchService

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

protected $tagRepo