public function __construct($directory = 'config') { // Set the configuration directory name $this->_directory = trim($directory, '/'); // Load the empty array parent::__construct(); }
public function __construct(array $config = NULL) { if (isset($config['instance'])) { $this->_database_instance = $config['instance']; } if (isset($config['table'])) { $this->_database_table = $config['table']; } parent::__construct(); }