class FacetapiWidgetCheckboxLinks in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/widget_links.inc \FacetapiWidgetCheckboxLinks
- 7 plugins/facetapi/widget_links.inc \FacetapiWidgetCheckboxLinks
Widget that renders facets as a list of clickable checkboxes.
Hierarchy
- class \FacetapiWidget
- class \FacetapiWidgetLinks
- class \FacetapiWidgetCheckboxLinks
- class \FacetapiWidgetLinks
Expanded class hierarchy of FacetapiWidgetCheckboxLinks
1 string reference to 'FacetapiWidgetCheckboxLinks'
File
- plugins/
facetapi/ widget_links.inc, line 210 - Widgets for facets rendered as links.
View source
class FacetapiWidgetCheckboxLinks extends FacetapiWidgetLinks {
/**
* Adds JavaScript settings.
*/
public function init() {
parent::init();
$this->jsSettings['makeCheckboxes'] = 1;
}
/**
* Sets the base class for checkbox facet items.
*
* @return array
* An array of classes.
*/
public function getItemClasses() {
return array(
'facetapi-checkbox',
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacetapiWidget:: |
protected | property | The normalized render array. | |
FacetapiWidget:: |
protected | property | The facet object. | |
FacetapiWidget:: |
protected | property | The machine readable name of the widget. | |
FacetapiWidget:: |
protected | property | JavaScript settings. | |
FacetapiWidget:: |
protected | property | The key of the facet's render array added to the realm's render array. | |
FacetapiWidget:: |
protected | property | The realm definition. | |
FacetapiWidget:: |
protected | property | The facet settings. | |
FacetapiWidget:: |
protected | function | Sorts the facet's build array. | |
FacetapiWidget:: |
public | function | Returns the render array. | |
FacetapiWidget:: |
public | function | Returns the machine readable name of the widget. | |
FacetapiWidget:: |
public | function | Returns the JavaScript settings. | |
FacetapiWidget:: |
public | function | Returns the element's key value. | |
FacetapiWidget:: |
protected | function | Generic sort callback, useful as a callback to uasort(). | |
FacetapiWidget:: |
function | Applies selected sorting algorithms to the render array. | ||
FacetapiWidgetCheckboxLinks:: |
public | function |
Sets the base class for checkbox facet items. Overrides FacetapiWidgetLinks:: |
|
FacetapiWidgetCheckboxLinks:: |
public | function |
Adds JavaScript settings. Overrides FacetapiWidget:: |
|
FacetapiWidgetLinks:: |
function | Recursive function that converts the render array into an array that can be passed to theme_item_list(). | ||
FacetapiWidgetLinks:: |
public | function |
Renders the links. Overrides FacetapiWidget:: |
|
FacetapiWidgetLinks:: |
function |
Returns defaults for the settings this widget provides. Overrides FacetapiWidget:: |
||
FacetapiWidgetLinks:: |
protected | function | Recursive function that sets each item's theme hook. | |
FacetapiWidgetLinks:: |
function |
Adds the soft limit setting. Overrides FacetapiWidget:: |
||
FacetapiWidgetLinks:: |
public | function |
Overrides constructor to reset the key. Overrides FacetapiWidget:: |