58 return $this->taxonomy->identifier;
66 $term_ids = $this->taxonomy->getAssociatedTermIds($item);
69 $attrs[
"data-taxonomy-{$this->taxonomy->identifier}"] = $term_ids;
82 var <?echo $this->taxonomy->identifier?>_select =
new MultiSelect(
'<?echo $this->taxonomy->identifier?>_container', {maxWidth:
'<?echo $this->dropdownMaxWidth?>',
message:
'<?echo jsSafe($this->dropdownMessage)?>'});
83 var <?echo $this->taxonomy->identifier?>_handler =
new TaxonomyFacetHandler(
'<?echo $this->taxonomy->identifier?>', <?echo $this->taxonomy->identifier?>_select, <?echo $this->manager->target->getID()?>_facet_manager);
96 if (count(
$items) == 0)
return;
103 $padding = (
$width ==
"auto") ?
"padding-right: 20px; overflow-x: hidden" :
"";
105 $resizable = (!$this->
dropdown && $this->resizable) ?
" resizable":
"";
106 $dropdown = $this->
dropdown ?
" multi_select_dropdown_list" :
"";
107 echo
"<div id='{$this->taxonomy->identifier}_container' class='scrollbox{$resizable}{$dropdown}' style='width: {$width}; height: {$height};overflow: auto; $padding'>\n";
110 $this->renderCheckBoxes(
$items);
121 return $this->taxonomy->Terms(
"ORDER BY sort_order, term");
130 echo
"<label for='checkbox_{$this->taxonomy->identifier}_$p'><input type='checkbox' class='checkbox' name='{$this->taxonomy->identifier}[$p]' id='checkbox_{$this->taxonomy->identifier}_$p' value='$p'";
131 if (array_key_exists($p, $selected))
135 echo
">".$item->term.
"";
161 return $this->bindingTarget->target_class;
169 $target_ids = $this->bindingTarget->getBoundItemIds($item);
172 $attrs[
"data-taxonomy-{$this->bindingTarget->target_class}"] = $target_ids;
185 var <?echo $this->bindingTarget->target_class?>_select =
new MultiSelect(
'<?echo $this->bindingTarget->target_class?>_container', {maxWidth:
'<?echo $this->dropdownMaxWidth?>',
message:
'<?echo jsSafe($this->dropdownMessage)?>'});
186 var <?echo $this->bindingTarget->target_class?>_handler =
new TaxonomyFacetHandler(
'<?echo $this->bindingTarget->target_class?>', <?echo $this->bindingTarget->target_class?>_select, <?echo $this->manager->target->getID()?>_facet_manager);
201 trace(
"## No items found for bound facet - {$this->bindingTarget->target_class}", 2);
210 $padding = (
$width ==
"auto") ?
"padding-right: 20px; overflow-x: hidden" :
"";
212 $resizable = (!$this->
dropdown && $this->resizable) ?
" resizable":
"";
213 $dropdown = $this->
dropdown ?
" multi_select_dropdown_list" :
"";
214 echo
"<div id='{$this->bindingTarget->target_class}_container' class='scrollbox{$resizable}{$dropdown}' style='width: {$width}; height: {$height};overflow: auto; $padding'>\n";
217 $this->renderCheckBoxes(
$items);
232 $p = $item->get($item->getPrimaryKey());
234 echo
"<label for='checkbox_{$this->bindingTarget->target_class}_$p'><input type='checkbox' class='checkbox' name='{$this->bindingTarget->target_class}[$p]' id='checkbox_{$this->bindingTarget->target_class}_$p' value='$p'";
235 if (array_key_exists($p, $selected))
239 echo
">".$item->format(
$format).
"";
__construct($bindingTarget)
static usingFeature()
Uses the specified framework feature(s).
static getBindingOptionFormat($bindingTarget)
static getBindingOptions($bindingTarget)