PHP Class Content_Indexer, horde

Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_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

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
_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.

Method Details

__construct() public méthode

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() protected méthode

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 méthode

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

Property Details

$_es protected_oe property

ElasticSearch client
protected Horde_ElasticSearch_Client $_es
Résultat Horde_ElasticSearch_Client

$_objectManager protected_oe property

Object manager
protected Content_Objects_Manager $_objectManager
Résultat Content_Objects_Manager

$_typeManager protected_oe property

Type management object
protected Content_Types_Manager $_typeManager
Résultat Content_Types_Manager

$_userManager protected_oe property

User manager object
protected Content_Users_Manager $_userManager
Résultat Content_Users_Manager