Horde_Config_Form::__construct PHP Method

__construct() public method

Constructor.
public __construct ( &$vars, string $app, boolean $fillvars = false )
$app string The name of the application that this configuration form is for.
$fillvars boolean Whether to fill the $vars object with values from the existing configuration.
    public function __construct(&$vars, $app, $fillvars = false)
    {
        parent::__construct($vars);
        $this->_xmlConfig = new Horde_Config($app);
        $this->_vars =& $vars;
        $this->_fillvars = $fillvars;
        if ($fillvars) {
            $vars->app = $app;
        }
        $config = $this->_xmlConfig->readXMLConfig();
        $this->addHidden('', 'app', 'text', true);
        $this->_buildVariables($config);
    }