Antidot PHP API  version 0.16.0
##PHP API to simplify integration of Antidot components
 All Classes Files Functions Variables Groups Pages
Static Public Member Functions | List of all members
AfsFacetHelperRetriever Class Reference

Retrieves facet helper from list of helpers. More...

Static Public Member Functions

static get_helper ($id, array &$facet_helpers)
 Retrieves helper with specified facet identifier.
static get_formatter ($facet_id, $query)
 Retrieves facet value formatter.

Detailed Description

Retrieves facet helper from list of helpers.

Member Function Documentation

static get_formatter (   $facet_id,
  $query 
)
static

Retrieves facet value formatter.

Formatters are needed to surround facet value with double quotes for specific facet type and layout.

Parameters
$facet_id[in] Facet identifier.
$query[in] AfsQuery which should contain facet information.
Returns
appropriate formatter.
static get_helper (   $id,
array &  $facet_helpers 
)
static

Retrieves helper with specified facet identifier.

Parameters
$id[in] Facet identifier to look for.
$facet_helpers[in] List of helpers to consider.
Returns
Requested helper or null when not found.