function __construct($config) { $this->file = $config; if (!$this->isAvailable()) { throw new InvalidArgumentException($this->error); } }
public function __construct($param = array()) { parent::__construct($param); $this->_xml = new DOMDocument(); $this->_filename = dirname(__FILE__) . '/../../configs/xml/' . $this->_connec_data[0]; $this->_current_page = $this->_connec_data[1]; }