diff Options.inc @ 32:7b19be62ea94

Remove yet another global, replace by CacheTimeCheck class.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 04 Oct 2012 19:46:11 +0200
parents 394b5df43d1a
children 511b6514823f
line wrap: on
line diff
--- a/Options.inc	Sun Sep 30 03:39:32 2012 +0200
+++ b/Options.inc	Thu Oct 04 19:46:11 2012 +0200
@@ -6,6 +6,7 @@
   private $name;
   private $acceptedLanguages = array();
   private $inputDefaults = array();
+  private $cache;
 
   function getDefaultLang()
   {
@@ -32,6 +33,16 @@
     return $this->name;
   }
 
+  function setCache($cache)
+  {
+    $this->cache = $cache;
+  }
+
+  function getCache()
+  {
+    return $this->cache;
+  }
+
   function getAcceptedLanguages()
   {
     return $this->acceptedLanguages;