photo/application/classes/Config.php

51 lines
1.1 KiB
PHP
Raw Normal View History

2014-06-30 04:22:57 +00:00
<?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.
*
2014-07-09 03:04:56 +00:00
* @package Photo
2014-06-30 04:22:57 +00:00
* @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;
}
2014-07-09 03:04:56 +00:00
public static function Copywrite() {
2014-06-30 04:22:57 +00:00
return '(c) 2014 Deon George';
}
public static function version() {
// @todo Work out our versioning
return 'TBA';
}
}
?>