readXMLConfig() 공개 메소드

Reads the application's conf.xml file and builds an associative array from its XML tree.
public readXMLConfig ( array $custom_conf = null ) : array
$custom_conf array Any settings that shall be included in the generated configuration.
리턴 array An associative array representing the configuration tree.
예제 #1
0
파일: Form.php 프로젝트: jubinpatel/horde
 /**
  * Constructor.
  *
  * @param Horde_Variables &$vars  The variables object of this form.
  * @param string $app             The name of the application that this
  *                                configuration form is for.
  * @param boolean $fillvars       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);
 }