PHP Class Content_Indexer, horde

Author: Chuck Hagenbuch ([email protected])
Mostrar archivo Open project: horde/horde

Protected Properties

Property 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

Public Methods

Method 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 )

Protected Methods

Method 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 method

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 method

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 method

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

Property Details

$_es protected_oe property

ElasticSearch client
protected Horde_ElasticSearch_Client $_es
return Horde_ElasticSearch_Client

$_objectManager protected_oe property

Object manager
protected Content_Objects_Manager $_objectManager
return Content_Objects_Manager

$_typeManager protected_oe property

Type management object
protected Content_Types_Manager $_typeManager
return Content_Types_Manager

$_userManager protected_oe property

User manager object
protected Content_Users_Manager $_userManager
return Content_Users_Manager