*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
/**
* Singleton instance
*/
- private static $selfInstance = null;
+ private static $selfInstance = NULL;
/**
* Protected constructor
*
* @return $selfInstance An instance of this class
*/
- public final static function getFactory () {
+ public static final function getFactory () {
// Is the instance null?
if (is_null(self::$selfInstance)) {
// Set a new one
self::$selfInstance = new CacheFactory();
- }
+ } // END - if
// Return the instance
return self::$selfInstance;
*/
public function createConfiguredCache () {
// Read the config entry
- $cacheType = $this->getConfigInstance()->readConfig('cache_class');
+ $cacheType = $this->getConfigInstance()->getConfigEntry('cache_class');
// And get a new instance
$cacheInstance = ObjectFactory::createObjectByName($cacheType);