src/Filter/Setting/SimpleLookup.php
public function getParameterFilterWidgets(
        $arrIds,
        $arrFilterUrl,
        $arrJumpTo,
        FrontendFilterOptions $objFrontendFilterOptions
    ) {
        // If defined as static, return nothing as not to be manipulated via editors.
        if (!$this->enableFEFilterWidget()) {
            return array();
        }

        if (!($attribute = $this->getFilteredAttribute())) {
            return array();
        }

        $GLOBALS['MM_FILTER_PARAMS'][] = $this->getParamName();

        $arrCount  = array();
        $arrWidget = array(
            'label'     => array(
                $this->getLabel(),
                'GET: ' . $this->getParamName()
            ),
            'inputType' => 'select',
            'options'   => $this->getParameterFilterOptions($attribute, $arrIds, $arrCount),
            'count'     => $arrCount,
            'showCount' => $objFrontendFilterOptions->isShowCountValues(),
            'eval'      => array
            (
                'includeBlankOption' => (
                        $this->get('blankoption') && !$objFrontendFilterOptions->isHideClearFilter()
                        ? true
                        : false
                    ),
                'blankOptionLabel'   => &$GLOBALS['TL_LANG']['metamodels_frontendfilter']['do_not_filter'],
                'colname'            => $attribute->getColname(),
                'urlparam'           => $this->getParamName(),
                'onlyused'           => $this->get('onlyused'),
                'onlypossible'       => $this->get('onlypossible'),
                'template'           => $this->get('template'),
            )
        );

        return array
        (
            $this->getParamName() => $this->prepareFrontendFilterWidget(
                $arrWidget,
                $arrFilterUrl,
                $arrJumpTo,
                $objFrontendFilterOptions
            )
        );
    }
public function getParameterFilterWidgets(
        $arrIds,
        $arrFilterUrl,
        $arrJumpTo,
        FrontendFilterOptions $objFrontendFilterOptions
    ) {
        // If defined as static, return nothing as not to be manipulated via editors.
        if (!$this->enableFEFilterWidget()) {
            return array();
        }

        if (!($attribute = $this->getFilteredAttribute())) {
            return array();
        }

        $GLOBALS['MM_FILTER_PARAMS'][] = $this->getParamName();

        $arrCount  = array();
        $arrWidget = array(
            'label'     => array(
                $this->getLabel(),
                'GET: ' . $this->getParamName()
            ),
            'inputType' => 'select',
            'options'   => $this->getParameterFilterOptions($attribute, $arrIds, $arrCount),
            'count'     => $arrCount,
            'showCount' => $objFrontendFilterOptions->isShowCountValues(),
            'eval'      => array
            (
                'includeBlankOption' => (
                        $this->get('blankoption') && !$objFrontendFilterOptions->isHideClearFilter()
                        ? true
                        : false
                    ),
                'blankOptionLabel'   => &$GLOBALS['TL_LANG']['metamodels_frontendfilter']['do_not_filter'],
                'colname'            => $attribute->getColname(),
                'urlparam'           => $this->getParamName(),
                'onlyused'           => $this->get('onlyused'),
                'onlypossible'       => $this->get('onlypossible'),
                'template'           => $this->get('template'),
            )
        );

        return array
        (
            $this->getParamName() => $this->prepareFrontendFilterWidget(
                $arrWidget,
                $arrFilterUrl,
                $arrJumpTo,
                $objFrontendFilterOptions
            )
        );
    }
public function getParameterFilterWidgets ( $ arrIds , $ arrFilterUrl , $ arrJumpTo , FrontendFilterOptions $ objFrontendFilterOptions ) { // If defined as static, return nothing as not to be manipulated via editors. if ( ! $ this -> enableFEFilterWidget ( ) ) { return array ( ) ; } if ( ! ( $ attribute = $ this -> getFilteredAttribute ( ) ) ) { return array ( ) ; } $ GLOBALS [ 'MM_FILTER_PARAMS' ] [ ] = $ this -> getParamName ( ) ; $ arrCount = array ( ) ; $ arrWidget = array ( 'label' => array ( $ this -> getLabel ( ) , 'GET: ' . $ this -> getParamName ( ) ) , 'inputType' => 'select' , 'options' => $ this -> getParameterFilterOptions ( $ attribute , $ arrIds , $ arrCount ) , 'count' => $ arrCount , 'showCount' => $ objFrontendFilterOptions -> isShowCountValues ( ) , 'eval' => array ( 'includeBlankOption' => ( $ this -> get ( 'blankoption' ) && ! $ objFrontendFilterOptions -> isHideClearFilter ( ) ? true : false ) , 'blankOptionLabel' => & $ GLOBALS [ 'TL_LANG' ] [ 'metamodels_frontendfilter' ] [ 'do_not_filter' ] , 'colname' => $ attribute -> getColname ( ) , 'urlparam' => $ this -> getParamName ( ) , 'onlyused' => $ this -> get ( 'onlyused' ) , 'onlypossible' => $ this -> get ( 'onlypossible' ) , 'template' => $ this -> get ( 'template' ) , ) ) ; return array ( $ this -> getParamName ( ) => $ this -> prepareFrontendFilterWidget ( $ arrWidget , $ arrFilterUrl , $ arrJumpTo , $ objFrontendFilterOptions ) ) ; }
{@inheritdoc}

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
{ @inheritdoc }