PHP 인터페이스 Newscoop\Search\IndexClientInterface

파일 보기 프로젝트 열기: sourcefabric/newscoop 0 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\DependencyInjection\Container $container ) Initialize class
add ( array $item ) : boolean Add given item
delete ( String $itemId ) : boolean Delete given article by id
deleteAll ( ) : boolean Delete all indexed data
flush ( ) : boolean Commit changes to index
isEnabled ( $clientName ) : boolean Checks whether the index client is enabled for the current service
isTypeIndexable ( string $serviceName, $itemSubType ) : boolean Checks whether the subtype is indexable.
setItem ( Newscoop\Search\DocumentInterface $item ) Set item. This method gives the possibility for the indexing client to access extra data in regards to the default indexable content.
setService ( Newscoop\Search\ServiceInterface $service ) Set service for the current client
update ( array $item ) : boolean Update given item

메소드 상세

__construct() 공개 메소드

Initialize class
public __construct ( Symfony\Component\DependencyInjection\Container $container )
$container Symfony\Component\DependencyInjection\Container

add() 공개 메소드

Add given item
public add ( array $item ) : boolean
$item array
리턴 boolean

delete() 공개 메소드

Delete given article by id
public delete ( String $itemId ) : boolean
$itemId String
리턴 boolean

deleteAll() 공개 메소드

Delete all indexed data
public deleteAll ( ) : boolean
리턴 boolean

flush() 공개 메소드

Commit changes to index
public flush ( ) : boolean
리턴 boolean

isEnabled() 공개 메소드

Checks whether the index client is enabled for the current service
public isEnabled ( $clientName ) : boolean
리턴 boolean

isTypeIndexable() 공개 메소드

Checks whether the subtype is indexable.
public isTypeIndexable ( string $serviceName, $itemSubType ) : boolean
$serviceName string Name of the service
리턴 boolean

setItem() 공개 메소드

Set item. This method gives the possibility for the indexing client to access extra data in regards to the default indexable content.
public setItem ( Newscoop\Search\DocumentInterface $item )
$item Newscoop\Search\DocumentInterface

setService() 공개 메소드

Set service for the current client
public setService ( Newscoop\Search\ServiceInterface $service )
$service Newscoop\Search\ServiceInterface

update() 공개 메소드

Update given item
public update ( array $item ) : boolean
$item array
리턴 boolean