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(); }
public function __construct($directory = 'config', $env = NULL) { // Set the configuration directory name $this->_directory = trim($directory, '/'); // Determine the other directory to check for configs if ($env != NULL) { $this->_subdirectory = 'env_' . $env; } else { if (is_string(Kohana::$environment)) { $this->_subdirectory = 'env_' . Kohana::$environment; } else { if (isset($this->_env_map[Kohana::$environment])) { $this->_subdirectory = 'env_' . $this->_env_map[Kohana::$environment]; } } } // Load the empty array parent::__construct(); }
/** * Constructor. * @param string $directory */ public function __construct($directory = 'config') { // Set directory name $this->_directory = trim($directory, '/'); parent::__construct(); }