Exemplo n.º 1
0
 public function __construct($directory = 'config')
 {
     // Set the configuration directory name
     $this->_directory = trim($directory, '/');
     // Load the empty array
     parent::__construct();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 /**
  * Constructor.
  * @param string $directory
  */
 public function __construct($directory = 'config')
 {
     // Set directory name
     $this->_directory = trim($directory, '/');
     parent::__construct();
 }