Indexer client base class

package midcom.services

 Methods

__construct (\midcom_db_topic $topic, \midcom_services_indexer $indexer)

Constructor

Parameters

$topic

\midcom_db_topicThe current topic

$indexer

\midcom_service_indexerThe indexer service

add_query ($name, \midcom_core_querybuilder $qb, array $schemadb)

Parameters

$name

$qb

$schemadb

index (\midcom_helper_datamanager2_datamanager $dm)

Index a single object from DM2

Parameters

$dm

\midcom_helper_datamanager2_datamanagerThe datamanager2 instance to use

prepare_document (\midcom_services_indexer_document $document, \midcom_helper_datamanager2_datamanager $dm)

Parameters

$document

$dm

reindex ()

_create_document (\midcom_helper_datamanager2_datamanager $dm)

Parameters

$dm

_process_query ($name, $qb, $schemadb)

Parameters

$name

$qb

$schemadb

 Properties

 

\midcom_services_i18n_l10n $_l10n

The L10n DB for the topic's component
 

array $_node

The NAP node corresponding to the topic
 

\midcom_db_topic $_topic

The topic we're working on
 

\midcom_services_indexer $_indexer

The indexer service
 

array $_queries

The queries we will work on.

Each entry consists of a querybuilder instance and a datamanager to render the results, and is indexed by name