![]() |
Framework
3.9
|
Public Member Functions | |
GroupedList ($items, $id="grouped_list", $format, $cssClass="article_list", $groupClass="subheading") | |
group ($title, $key, $expanded=false, $fixed=false) | |
Adds a group to the view. More... | |
groupBy ($groups, $format=null, $field="") | |
Add groups based on the supplied list of DataItems. More... | |
getID () | |
addFacetTaggingHandler ($handler) | |
Adds a row tagging handler. More... | |
format ($group, $template) | |
Outputs the text for the groupedBy title bar using the given group dataitem object. More... | |
writeScript () | |
drawList () | |
drawListToString () | |
Helpful utility function - generates the list HTML in an output buffer and returns the string representation. More... | |
Public Attributes | |
$items | |
$id | |
$format | |
$mode | |
The display mode for the table: fixed, tree, or accordian. More... | |
$groups | |
The group definitions. More... | |
$cssClass = null | |
$styles = null | |
$groupStyles = "" | |
Styles for the group headings. More... | |
$groupClass = "subheading" | |
Class for the ul that links the li list. More... | |
$groupedListClass | |
The css class for the entire grouped list div. More... | |
$group_id | |
$tagRowCallbacks | |
Array of callbacks for adding extra attributes to each row. More... | |
Definition at line 83 of file grouped_list.inc.
GroupedList::addFacetTaggingHandler | ( | $handler | ) |
Adds a row tagging handler.
This function will receive the data item for each row and can add custom attributes to the row tag.
Implements FacetFilterable.
Definition at line 151 of file grouped_list.inc.
GroupedList::drawList | ( | ) |
Definition at line 191 of file grouped_list.inc.
GroupedList::drawListToString | ( | ) |
Helpful utility function - generates the list HTML in an output buffer and returns the string representation.
This is useful for resolving issues in rendering order that can occur when working with facets.
Definition at line 269 of file grouped_list.inc.
GroupedList::format | ( | $group, | |
$template | |||
) |
Outputs the text for the groupedBy title bar using the given group dataitem object.
This function should not be invoked directly, but is invoked as part of the GroupedDataListView's rendering operations.
$group | the dataitem object for the title bar being rendered |
Definition at line 164 of file grouped_list.inc.
GroupedList::getID | ( | ) |
Implements FacetFilterable.
Definition at line 142 of file grouped_list.inc.
GroupedList::group | ( | $title, | |
$key, | |||
$expanded = false , |
|||
$fixed = false |
|||
) |
Adds a group to the view.
unknown_type | $title | the title text for the group. |
unknown_type | $key | the key value for the group. |
unknown_type | $expanded | true for expanded by default, false for collapsed by default |
Definition at line 117 of file grouped_list.inc.
GroupedList::groupBy | ( | $groups, | |
$format = null , |
|||
$field = "" |
|||
) |
Add groups based on the supplied list of DataItems.
$groups | list of DataItems |
$format | format template for the group titles |
$field | the field to use for the key (defaults to the primary key of the group items if not specified) |
Definition at line 129 of file grouped_list.inc.
GroupedList::GroupedList | ( | $items, | |
$id = "grouped_list" , |
|||
$format, | |||
$cssClass = "article_list" , |
|||
$groupClass = "subheading" |
|||
) |
Definition at line 98 of file grouped_list.inc.
GroupedList::writeScript | ( | ) |
Definition at line 173 of file grouped_list.inc.
GroupedList::$cssClass = null |
Definition at line 90 of file grouped_list.inc.
GroupedList::$format |
Definition at line 87 of file grouped_list.inc.
GroupedList::$group_id |
Definition at line 95 of file grouped_list.inc.
GroupedList::$groupClass = "subheading" |
Class for the ul that links the li list.
Definition at line 93 of file grouped_list.inc.
GroupedList::$groupedListClass |
The css class for the entire grouped list div.
Definition at line 94 of file grouped_list.inc.
GroupedList::$groups |
The group definitions.
Definition at line 89 of file grouped_list.inc.
GroupedList::$groupStyles = "" |
Styles for the group headings.
Definition at line 92 of file grouped_list.inc.
GroupedList::$id |
Definition at line 86 of file grouped_list.inc.
GroupedList::$items |
Definition at line 85 of file grouped_list.inc.
GroupedList::$mode |
The display mode for the table: fixed, tree, or accordian.
Definition at line 88 of file grouped_list.inc.
GroupedList::$styles = null |
Definition at line 91 of file grouped_list.inc.
GroupedList::$tagRowCallbacks |
Array of callbacks for adding extra attributes to each row.
Definition at line 96 of file grouped_list.inc.