* -------------------------------------------------------------------- *
* 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 *
// 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();
} 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') {