]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/cache/class_MemoryCache.php
Comment header cosmetics applied
[shipsimu.git] / inc / classes / main / cache / class_MemoryCache.php
index e708b2c0200018b75982940edff210321e2b44dc..dcf378362a6f5ac6ba954f5cba43c914d66bbba3 100644 (file)
@@ -3,10 +3,10 @@
  * A simple memory cache (similar to a registry)
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.3.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.mxchange.org
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class MemoryCache extends BaseFrameworkSystem implements Cacheable {
        /**
@@ -40,7 +40,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
                $this->setObjectDescription("Memory cache");
 
                // Create unique ID number
-               $this->createUniqueID();
+               $this->generateUniqueId();
 
                // Clean up a little
                $this->removeNumberFormaters();
@@ -70,7 +70,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
         */
        protected function initCache () {
                // Now create the "data cache"
-               $this->dataCache = new FrameworkArrayObject("FakedDataCache");
+               $this->dataCache = new FrameworkArrayObject('FakedDataCache');
        }
 
        /**
@@ -101,7 +101,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
         * @param       $offset         The offset we shall set
         * @return      $data           Data to store in the cache
         */
-       public final function offsetget ($offset) {
+       public final function offsetGet ($offset) {
                // Default is offset not found
                $data = null;