PHP Класс Content_Indexer, horde

Автор: Chuck Hagenbuch ([email protected])
Показать файл Открыть проект

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

Свойство Тип Описание
$_es Horde_ElasticSearch_Client ElasticSearch client
$_objectManager Content_Objects_Manager Object manager
$_typeManager Content_Types_Manager Type management object
$_userManager Content_Users_Manager User manager object

Открытые методы

Метод Описание
__construct ( Horde_ElasticSearch_Client $es, Content_Users_Manager $userManager, Content_Types_Manager $typeManager, Content_Objects_Manager $objectManager ) Constructor
index ( $index, $type, $id, $data )
search ( $index, $type, $query )

Защищенные методы

Метод Описание
_ensureObject ( $object ) Convenience method - if $object is an array, it is taken as an array of 'object' and 'type' to pass to objectManager::ensureObjects() if it's a scalar value, it's taken as the object_id and simply returned.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Horde_ElasticSearch_Client $es, Content_Users_Manager $userManager, Content_Types_Manager $typeManager, Content_Objects_Manager $objectManager )
$es Horde_ElasticSearch_Client
$userManager Content_Users_Manager
$typeManager Content_Types_Manager
$objectManager Content_Objects_Manager

_ensureObject() защищенный Метод

Convenience method - if $object is an array, it is taken as an array of 'object' and 'type' to pass to objectManager::ensureObjects() if it's a scalar value, it's taken as the object_id and simply returned.
protected _ensureObject ( $object )

index() публичный Метод

public index ( $index, $type, $id, $data )

Описание свойств

$_es защищенное свойство

ElasticSearch client
protected Horde_ElasticSearch_Client $_es
Результат Horde_ElasticSearch_Client

$_objectManager защищенное свойство

Object manager
protected Content_Objects_Manager $_objectManager
Результат Content_Objects_Manager

$_typeManager защищенное свойство

Type management object
protected Content_Types_Manager $_typeManager
Результат Content_Types_Manager

$_userManager защищенное свойство

User manager object
protected Content_Users_Manager $_userManager
Результат Content_Users_Manager