PHP 클래스 Newscoop\Search\DefaultIndexClient

상속: implements Newscoop\Search\IndexClientInterface
파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$add array Contains data to be added
$container Symfony\Component\DependencyInjection\Container Symfony container
$delete array Contains data to be deleted
$item Newscoop\Search\DocumentInterface Indexable item
$service Newscoop\Search\ServiceInterface Newscoop service interface
$update array Contains data to be updated

공개 메소드들

메소드 설명
__construct ( Symfony\Component\DependencyInjection\Container $container )
add ( array $document ) : boolean Adds data to inderxer
delete ( string $document ) : boolean Delete item from index
deleteAll ( ) : boolean Delete all indexed data
flush ( ) : boolean Flush all commands
isEnabled ( $clientName )
isTypeIndexable ( $serviceName, $subType )
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
update ( array $document ) : boolean Updates element in indexer (if supported)

메소드 상세

__construct() 공개 메소드

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

add() 공개 메소드

Adds data to inderxer
public add ( array $document ) : boolean
$document array Indexable array, must contain key 'id'
리턴 boolean

delete() 공개 메소드

Delete item from index
public delete ( string $document ) : boolean
$document string Id of indexable data
리턴 boolean

deleteAll() 공개 메소드

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

flush() 공개 메소드

Flush all commands
public flush ( ) : boolean
리턴 boolean

isEnabled() 공개 메소드

public isEnabled ( $clientName )

isTypeIndexable() 공개 메소드

public isTypeIndexable ( $serviceName, $subType )

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
public setService ( Newscoop\Search\ServiceInterface $service )
$service Newscoop\Search\ServiceInterface

update() 공개 메소드

Updates element in indexer (if supported)
public update ( array $document ) : boolean
$document array Re-indexable data, must contain key 'id'
리턴 boolean

프로퍼티 상세

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

Contains data to be added
protected array $add
리턴 array

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

Symfony container
protected Container,Symfony\Component\DependencyInjection $container
리턴 Symfony\Component\DependencyInjection\Container

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

Contains data to be deleted
protected array $delete
리턴 array

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

Indexable item
protected DocumentInterface,Newscoop\Search $item
리턴 Newscoop\Search\DocumentInterface

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

Newscoop service interface
protected ServiceInterface,Newscoop\Search $service
리턴 Newscoop\Search\ServiceInterface

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

Contains data to be updated
protected array $update
리턴 array