function __construct($args) { $this->_env = $args['env']; parent::__construct($args); $this->__processXMLFields(); $this->__processCustom(); $this->__isUrlParamValuesPresent(); }
function __construct($args = NULL) { ## Check the config file is writable if (!is_writeable(CONFIG)) { $this->fatalError(NULL, "<p>Symphony's configuration file is not writable. Please check permissions on <code>/manifest/config.php</code>.</p>", true, true); } $this->_config = new Configuration(true); if (isset($args['config_xml'])) { General::loadConfiguration($args['config_xml'], $this->_config, new XmlDoc()); } if (isset($args['config'])) { $this->_config->setArray($args['config']); } if ($args['start_session']) { $this->startSession(); } if ($this->getConfigVar("prune_logs", "symphony")) { $this->pruneLogs(); } $this->_date =& new SymDate($this->getConfigVar("time_zone", "region"), $this->getConfigVar("date_format", "region"), $this->getConfigVar("dst", "region") == "yes" ? 1 : 0); parent::__construct(array("parent" => $this)); }