PHP Класс Newscoop\Search\DefaultIndexClient

Наследование: implements Newscoop\Search\IndexClientInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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