src/Service/Config/From/Ini.php
public function getFeConfigFromFile($parameterName)
    {
        // Get the human readable stuff from the ini file.
        $value = $this->getConfigFromFile('feEditing', $parameterName);

        if (empty($value) === true) {
            // Sorry, no value stored.
            return null;
        }

        // Get the rendering type.
        $type = $this->feConfigFallback[$parameterName][static::RENDER][static::RENDER_TYPE];

        // Stitch together the setting.
        switch ($value) {
            case static::RENDER_TYPE_NONE:
                $type = static::RENDER_TYPE_NONE;
                $editable = static::VALUE_FALSE;
                break;

            case static::RENDER_TYPE_INI_DISPLAY:
                $editable = static::VALUE_FALSE;
                break;

            case static::RENDER_TYPE_INI_FULL:
                $editable = static::VALUE_TRUE;
                break;

            default:
                // Unknown setting.
                // Fallback to no display, just in case.
                $type = static::RENDER_TYPE_NONE;
                $editable = static::VALUE_FALSE;
                break;
        }

        return array(
            static::RENDER_TYPE => $type,
            static::RENDER_EDITABLE => $editable,
        );
    }
public function getFeConfigFromFile($parameterName)
    {
        // Get the human readable stuff from the ini file.
        $value = $this->getConfigFromFile('feEditing', $parameterName);

        if (empty($value) === true) {
            // Sorry, no value stored.
            return null;
        }

        // Get the rendering type.
        $type = $this->feConfigFallback[$parameterName][static::RENDER][static::RENDER_TYPE];

        // Stitch together the setting.
        switch ($value) {
            case static::RENDER_TYPE_NONE:
                $type = static::RENDER_TYPE_NONE;
                $editable = static::VALUE_FALSE;
                break;

            case static::RENDER_TYPE_INI_DISPLAY:
                $editable = static::VALUE_FALSE;
                break;

            case static::RENDER_TYPE_INI_FULL:
                $editable = static::VALUE_TRUE;
                break;

            default:
                // Unknown setting.
                // Fallback to no display, just in case.
                $type = static::RENDER_TYPE_NONE;
                $editable = static::VALUE_FALSE;
                break;
        }

        return array(
            static::RENDER_TYPE => $type,
            static::RENDER_EDITABLE => $editable,
        );
    }
public function getFeConfigFromFile ( $ parameterName ) { // Get the human readable stuff from the ini file. $ value = $ this -> getConfigFromFile ( 'feEditing' , $ parameterName ) ; if ( empty ( $ value ) === true ) { // Sorry, no value stored. return null ; } // Get the rendering type. $ type = $ this -> feConfigFallback [ $ parameterName ] [ static :: RENDER ] [ static :: RENDER_TYPE ] ; // Stitch together the setting. switch ( $ value ) { case static :: RENDER_TYPE_NONE : $ type = static :: RENDER_TYPE_NONE ; $ editable = static :: VALUE_FALSE ; break ; case static :: RENDER_TYPE_INI_DISPLAY : $ editable = static :: VALUE_FALSE ; break ; case static :: RENDER_TYPE_INI_FULL : $ editable = static :: VALUE_TRUE ; break ; default : // Unknown setting. // Fallback to no display, just in case. $ type = static :: RENDER_TYPE_NONE ; $ editable = static :: VALUE_FALSE ; break ; } return array ( static :: RENDER_TYPE => $ type , static :: RENDER_EDITABLE => $ editable , ) ; }
Get the config of the frontend config form from the file.

@param string $parameterName
The parameter you want to render.

@return array|null
The configuration (is it editable, a dropdown, a textfield, ...)
Get the config of the frontend config form from the file .