]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/cachesystem.class.php
No more PHP4:
[mailer.git] / inc / classes / cachesystem.class.php
index 6a2ca4e134f3b5da2fade398992f99f361e7bdf7..c9dcc71a4450c3a0aded55ba538c4f855726beca 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : CacheSystem-Klasse                               *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -43,32 +38,35 @@ if (!defined('__SECURITY')) {
 // Caching class
 class CacheSystem {
        // Status code
-       var $statusCode = 'init';
+       public $statusCode = 'init';
 
        // Full-qualified filename
-       var $fqfn = '';
+       public $fqfn = '';
 
        // Resource to cache file
-       var $pointer = FALSE;
+       public $pointer = FALSE;
 
        // Data array from cache
-       var $data = array();
+       public $data = array();
 
        // Version data from cache
-       var $version = array();
+       public $version = array();
 
        // Cache name
-       var $name = '';
-       var $rebuilt = array();
+       public $name = '';
+       public $rebuilt = array();
 
        // File extension
-       var $extension = '.cache';
-       var $status = array();
-       var $readable = array();
-       var $fullPath = '';
+       public $extension = '';
+       public $status = array();
+       public $readable = array();
+       public $fullPath = '';
 
        // Constructor
-       function CacheSystem () {
+       public function __construct () {
+               // Set extension
+               $this->extension = getCacheExtension();
+
                // Construct full path
                $this->fullPath = getPath() . getCachePath();
 
@@ -195,9 +193,6 @@ class CacheSystem {
                                } elseif ($this->name == 'refsystem') {
                                        // Referral system
                                        $GLOBALS['cache_array']['refsystem'][$k][$data['id']] = $v;
-                               } elseif ($this->name == 'revision') {
-                                       // Revision data
-                                       $GLOBALS['cache_array']['revision'][$k][0] = $v;
                                } elseif ($this->name == 'themes') {
                                        // Themes
                                        if ($k == 'theme_path') {