org.openpsa.contacts search handler and viewer class.

package org.openpsa.contacts

 Methods

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

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_show_search_type (mixed $handler_id, array $data)

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_apply_constraints (\midcom_core_query $qb, array $fields)

Parameters

$qb

$fields

_parse_query ()

_populate_toolbar ()

_prepare_json_reply ()

_search_qb_groups ()

Does a QB query for groups, returns false or number of matched entries

Displays style element 'search-groups-empty' only if $displayEmpty is set to true.

_search_qb_persons ()

Does a QB query for persons, returns false or number of matched entries

 Properties

 

array $_groups

The group results, if any
 

array $_persons

The person results, if any
 

array $_query

The query to run
 

string $_query_mode

Which types of objects should be queried

Options are: person, group, both

 

string $_query_string

The search string as entered by the user
 

string $_query_string_processed

The search string, prepared for querying
 

string $_wildcard_template

The wildcard to wrap around the query terms, if any