Search handler

package midcom.helper.search

 Methods

_handler_opensearchdescription (mixed $handler_id, array $args, array $data)

Prepare OpenSearch data file for browser search bar integration.

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_handler_result (mixed $handler_id, array $args, array $data)

Queries the information from the index and prepares to display the result page.

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_handler_searchform (mixed $handler_id, array $args, array $data)

Search form handler, nothing to do here.

It uses the handler ID to distinguish between basic and advanced search forms.

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_show_opensearchdescription (mixed $handler_id, array $data)

Display OpenSearch data file for browser search bar integration.

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_show_result (mixed $handler_id, array $data)

Displays the resultset.

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_show_searchform (mixed $handler_id, array $data)

Search form show handler, displays the search form, including some hints about how to write queries.

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

append_terms_recursive (string $final_query, mixed $terms)

Expand arrays of custom rules to end of query

Parameters

$final_query

string&$final_query reference to the query string to be passed on to the indexer.

$terms

mixedarray or string to append

_do_advanced_query ($data)

Parameters

$data

_populate_toolbar ()

_prepare_formdata ($handler_id)

Parameters

$handler_id

_prepare_query_data ()

Sane defaults for REQUEST vars

_process_results ($result)

Parameters

$result

_search_nodes ($node_id, $nap, $prefix)

Prepare the topic and component listings, this is a bit work intensive though, we need to traverse everything.

Parameters

$node_id

$nap

$prefix