function __construct($filename, $type = 'xml') { $this->type = $type; $conf = new Config(); if (!is_null($filename)) { $this->rootObj = $conf->_parse_config_section($type); } else { $this->rootObj = new Config_Container('section', 'config'); $conf->setroot($this->rootObj); } }