src/Filter/Setting/SimpleLookup.php
public function getParameterDCA()
    {
        // If defined as static, return nothing as not to be manipulated via editors.
        if (!$this->get('predef_param')) {
            return array();
        }

        $objAttribute = $this->getFilteredAttribute();
        $arrOptions   = $objAttribute->getFilterOptions(null, (bool) $this->get('onlyused'));

        return array(
            $this->getParamName() => array
            (
                'label'   => array(
                    sprintf(
                        $GLOBALS['TL_LANG']['MSC']['metamodel_filtersettings_parameter']['simplelookup'][0],
                        $objAttribute->getName()
                    ),
                    sprintf(
                        $GLOBALS['TL_LANG']['MSC']['metamodel_filtersettings_parameter']['simplelookup'][1],
                        $objAttribute->getName()
                    )
                ),
                'inputType'    => 'select',
                'options' => $arrOptions,
                'eval' => array(
                    'includeBlankOption' => true,
                    'style' => 'min-width:450px;width:450px;margin-bottom:16px;margin-right:10px;'
                )
            )
        );
    }
public function getParameterDCA()
    {
        // If defined as static, return nothing as not to be manipulated via editors.
        if (!$this->get('predef_param')) {
            return array();
        }

        $objAttribute = $this->getFilteredAttribute();
        $arrOptions   = $objAttribute->getFilterOptions(null, (bool) $this->get('onlyused'));

        return array(
            $this->getParamName() => array
            (
                'label'   => array(
                    sprintf(
                        $GLOBALS['TL_LANG']['MSC']['metamodel_filtersettings_parameter']['simplelookup'][0],
                        $objAttribute->getName()
                    ),
                    sprintf(
                        $GLOBALS['TL_LANG']['MSC']['metamodel_filtersettings_parameter']['simplelookup'][1],
                        $objAttribute->getName()
                    )
                ),
                'inputType'    => 'select',
                'options' => $arrOptions,
                'eval' => array(
                    'includeBlankOption' => true,
                    'style' => 'min-width:450px;width:450px;margin-bottom:16px;margin-right:10px;'
                )
            )
        );
    }
public function getParameterDCA ( ) { // If defined as static, return nothing as not to be manipulated via editors. if ( ! $ this -> get ( 'predef_param' ) ) { return array ( ) ; } $ objAttribute = $ this -> getFilteredAttribute ( ) ; $ arrOptions = $ objAttribute -> getFilterOptions ( null , ( bool ) $ this -> get ( 'onlyused' ) ) ; return array ( $ this -> getParamName ( ) => array ( 'label' => array ( sprintf ( $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'metamodel_filtersettings_parameter' ] [ 'simplelookup' ] [ 0 ] , $ objAttribute -> getName ( ) ) , sprintf ( $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'metamodel_filtersettings_parameter' ] [ 'simplelookup' ] [ 1 ] , $ objAttribute -> getName ( ) ) ) , 'inputType' => 'select' , 'options' => $ arrOptions , 'eval' => array ( 'includeBlankOption' => true , 'style' => 'min-width:450px;width:450px;margin-bottom:16px;margin-right:10px;' ) ) ) ; }
{@inheritdoc}

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