src/FilterSetting/AbstractFromTo.php
protected function prepareWidgetOptions($arrIds, $objAttribute)
    {
        $arrOptions = $objAttribute->getFilterOptions(
            ($this->get('onlypossible') ? $arrIds : null),
            (bool) $this->get('onlyused')
        );

        // Remove empty values from list.
        foreach ($arrOptions as $mixKeyOption => $mixOption) {
            // Remove html/php tags.
            $mixOption = \strip_tags($mixOption);
            $mixOption = \trim($mixOption);

            if ($mixOption === '' || $mixOption === null) {
                unset($arrOptions[$mixKeyOption]);
            }
        }

        return $arrOptions;
    }
protected function prepareWidgetOptions($arrIds, $objAttribute)
    {
        $arrOptions = $objAttribute->getFilterOptions(
            ($this->get('onlypossible') ? $arrIds : null),
            (bool) $this->get('onlyused')
        );

        // Remove empty values from list.
        foreach ($arrOptions as $mixKeyOption => $mixOption) {
            // Remove html/php tags.
            $mixOption = \strip_tags($mixOption);
            $mixOption = \trim($mixOption);

            if ($mixOption === '' || $mixOption === null) {
                unset($arrOptions[$mixKeyOption]);
            }
        }

        return $arrOptions;
    }
protected function prepareWidgetOptions ( $ arrIds , $ objAttribute ) { $ arrOptions = $ objAttribute -> getFilterOptions ( ( $ this -> get ( 'onlypossible' ) ? $ arrIds : null ) , ( bool ) $ this -> get ( 'onlyused' ) ) ; // Remove empty values from list. foreach ( $ arrOptions as $ mixKeyOption => $ mixOption ) { // Remove html/php tags. $ mixOption = \ strip_tags ( $ mixOption ) ; $ mixOption = \ trim ( $ mixOption ) ; if ( $ mixOption === '' || $ mixOption === null ) { unset ( $ arrOptions [ $ mixKeyOption ] ) ; } } return $ arrOptions ; }
Prepare options for the widget.

@param array      $arrIds       List of ids.
@param IAttribute $objAttribute The metamodel attribute.

@return array
Prepare options for the widget .