Code syncronized with shipsimu code base
[mailer.git] / inc / classes / main / factories / cache / class_CacheFactory.php
index e2cb7bce35571fc18604c469a8c6180758272f7a..2938b8742f16a316106052c35c45d885a7e9f328 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -35,12 +35,6 @@ class CacheFactory extends BaseFactory {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Set object description
-               $this->setObjectDescription("Factory for cache objects");
-
-               // Create unique ID number
-               $this->generateUniqueId();
        }
 
        /**
@@ -66,7 +60,7 @@ class CacheFactory extends BaseFactory {
         */
        public function createConfiguredCache () {
                // Read the config entry
-               $cacheType = $this->getConfigInstance()->readConfig("cache_class");
+               $cacheType = $this->getConfigInstance()->readConfig('cache_class');
 
                // And get a new instance
                $cacheInstance = ObjectFactory::createObjectByName($cacheType);