Example #1
0
 /**
  * Returns an instance of the cache_helper.
  *
  * This is designed for internal use only and acts as a static store.
  * @staticvar null $instance
  * @return cache_helper
  */
 protected static function instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new cache_helper();
     }
     return self::$instance;
 }