![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Helper to manage facets. More...
Public Member Functions | |
| __construct ($facet, AfsQuery $query, AfsHelperConfiguration $config, $feed=null) | |
| Constructs new instance of facet helper. | |
| get_label () | |
| Retrieve facet label. | |
| get_id () | |
| Retrieves facet id. | |
| get_layout () | |
| Retrieves facet layout. | |
| get_type () | |
| Retrieves facet type. | |
| is_sticky () | |
| Retrieves stickyness of the facet. | |
| get_elements () | |
| Retrieve all facet elements of this facet. | |
| format () | |
| Retrieve facet as array. | |
Public Member Functions inherited from AfsHelperBase | |
| __get ($name) | |
| Simple property helper. | |
Helper to manage facets.
| __construct | ( | $facet, | |
| AfsQuery | $query, | ||
| AfsHelperConfiguration | $config, | ||
$feed = null |
|||
| ) |
Constructs new instance of facet helper.
| $facet | [in] root facet element. |
| $query | [in] AfsQuery which has produced current reply. |
| $config | [in] helper configuration object. |
| format | ( | ) |
Retrieve facet as array.
All data are store in key => value format:
label: facet label, values: array of facet elements (see AfsFacetValueHelper).| get_elements | ( | ) |
Retrieve all facet elements of this facet.
| get_id | ( | ) |
Retrieves facet id.
This value is not necessary unless specific query should be created instead of the ones provided by AfsFacetValueHelper.
| get_label | ( | ) |
Retrieve facet label.
First label found is retrieved. Label in right language is retrieved as soon as filter on required language has been set in AfsQuery.
| get_layout | ( | ) |
Retrieves facet layout.
| get_type | ( | ) |
Retrieves facet type.
| is_sticky | ( | ) |
Retrieves stickyness of the facet.
1.8.1.2