51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* This class extends the core Kohana class by adding some core application
|
|
* specific functions, and configuration.
|
|
*
|
|
* @package Photo
|
|
* @category Helpers
|
|
* @author Deon George
|
|
* @copyright (c) 2014 Deon George
|
|
* @license http://dev.leenooks.net/license.html
|
|
*/
|
|
class Config extends Kohana_Config {
|
|
/**
|
|
* Some early initialisation
|
|
*
|
|
* At this point, KH hasnt been fully initialised either, so we cant rely on
|
|
* too many KH functions yet.
|
|
*
|
|
* NOTE: Kohana doesnt provide a parent construct for the Kohana_Config class.
|
|
*/
|
|
public function __construct() {
|
|
}
|
|
|
|
/**
|
|
* Get the singleton instance of Config.
|
|
*
|
|
* $config = Config::instance();
|
|
*
|
|
* @return Config
|
|
* @compat Restore KH 3.1 functionality
|
|
*/
|
|
public static function instance() {
|
|
if (Config::$_instance === NULL)
|
|
// Create a new instance
|
|
Config::$_instance = new Config;
|
|
|
|
return Config::$_instance;
|
|
}
|
|
|
|
public static function Copywrite() {
|
|
return '(c) 2014 Deon George';
|
|
}
|
|
|
|
public static function version() {
|
|
// @todo Work out our versioning
|
|
return 'TBA';
|
|
}
|
|
}
|
|
?>
|