X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fcache%2Fclass_MemoryCache.php;h=840519d37fb3523c5c1c8bbdc02d7b0448f8542d;hb=c59dccf46c5d0e3b7f2687370b2b15023b1ecdfe;hp=4cb7459b6d72a47d19a4e5e00beb12455bc44fd7;hpb=e2767d5148436d0c90ed66ed9290416353ae6e60;p=hub.git diff --git a/inc/classes/main/cache/class_MemoryCache.php b/inc/classes/main/cache/class_MemoryCache.php index 4cb7459b6..840519d37 100644 --- a/inc/classes/main/cache/class_MemoryCache.php +++ b/inc/classes/main/cache/class_MemoryCache.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @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 * @@ -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 . + * along with this program. If not, see . */ class MemoryCache extends BaseFrameworkSystem implements Cacheable { /** @@ -36,12 +36,6 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable { // Call parent constructor parent::__construct(__CLASS__); - // Set part description - $this->setObjectDescription("Memory cache"); - - // Create unique ID number - $this->generateUniqueId(); - // Clean up a little $this->removeNumberFormaters(); $this->removeSystemArray(); @@ -70,7 +64,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 +95,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;