/** * Build parameter filter widgets. * * @param array $arrJumpTo The jumpTo page. * @param FrontendFilterOptions $objFrontendFilterOptions Frontendfilter options. * @param IAttribute $objAttribute MetaModel Attribute. * @param string $strParamName Param name. * @param array $arrOptions Options. * @param array $arrCount Count configuration. * @param array|null $arrParamValue Parameter value. * @param array $arrMyFilterUrl Filter url of the current filter. * * @return array * * @SuppressWarnings(PHPMD.Superglobals) * @SuppressWarnings(PHPMD.CamelCaseVariableName) */ private function buildParameterFilterWidgets($arrJumpTo, FrontendFilterOptions $objFrontendFilterOptions, $objAttribute, $strParamName, $arrOptions, $arrCount, $arrParamValue, $arrMyFilterUrl) { return array($this->getParamName() => $this->prepareFrontendFilterWidget(array('label' => array($this->get('label') ? $this->get('label') : $objAttribute->getName(), 'GET: ' . $strParamName), 'inputType' => 'tags', 'options' => $arrOptions, 'count' => $arrCount, 'showCount' => $objFrontendFilterOptions->isShowCountValues(), 'eval' => array('includeBlankOption' => $this->get('blankoption') && !$objFrontendFilterOptions->isHideClearFilter(), 'blankOptionLabel' => &$GLOBALS['TL_LANG']['metamodels_frontendfilter']['do_not_filter'], 'multiple' => true, 'colname' => $objAttribute->getColname(), 'urlparam' => $strParamName, 'onlyused' => $this->get('onlyused'), 'onlypossible' => $this->get('onlypossible'), 'template' => $this->get('template')), 'urlvalue' => !empty($arrParamValue) ? implode(',', $arrParamValue) : ''), $arrMyFilterUrl, $arrJumpTo, $objFrontendFilterOptions)); }