aliroSingletonObjectCache Class Reference

Inheritance diagram for aliroSingletonObjectCache:

aliroBasicCache

List of all members.

Public Member Functions

 delete ()
 deleteByExtension ($type)

Static Public Member Functions

static getInstance ()

Protected Member Functions

 getCachePath ($name)

Protected Attributes

 $timeout = _ALIRO_OBJECT_CACHE_TIME_LIMIT
 $sizelimit = _ALIRO_OBJECT_CACHE_SIZE_LIMIT

Static Protected Attributes

static $instance = __CLASS__


Detailed Description

Definition at line 197 of file objectcache.php.


Member Function Documentation

static aliroSingletonObjectCache::getInstance (  )  [static]

Definition at line 202 of file objectcache.php.

Referenced by cachedSingleton::cacheNow(), cachedSingleton::clearCache(), aliroFullAdminMenu::clearCache(), cachedSingleton::getCachedSingleton(), aliroSEF::saveCache(), and aliroFullAdminMenu::show().

00202                                           {
00203         return is_object(self::$instance) ? self::$instance : (self::$instance = new self::$instance);
00204     }

aliroSingletonObjectCache::getCachePath ( name  )  [protected]

Reimplemented from aliroBasicCache.

Definition at line 206 of file objectcache.php.

Referenced by delete().

00206                                             {
00207         return $this->basepath.'singleton/'.$name;
00208     }

aliroSingletonObjectCache::delete (  ) 

Definition at line 210 of file objectcache.php.

References getCachePath().

00210                               {
00211         $classes = func_get_args();
00212         foreach ($classes as $class) {
00213             $cachepath = $this->getCachePath($class);
00214             if (file_exists($cachepath)) unlink($cachepath);
00215         }
00216     }

aliroSingletonObjectCache::deleteByExtension ( type  ) 

Definition at line 218 of file objectcache.php.

00218                                               {
00219         $caches = array (
00220         'component' => 'aliroComponentHandler',
00221         'module' => 'aliroModuleHandler',
00222         'mambot' => 'aliroMambotHandler'
00223         );
00224         if (isset($caches[$type])) $this->delete($caches[$type]);
00225     }


Member Data Documentation

aliroSingletonObjectCache::$instance = __CLASS__ [static, protected]

Definition at line 198 of file objectcache.php.

aliroSingletonObjectCache::$timeout = _ALIRO_OBJECT_CACHE_TIME_LIMIT [protected]

Reimplemented from aliroBasicCache.

Definition at line 199 of file objectcache.php.

aliroSingletonObjectCache::$sizelimit = _ALIRO_OBJECT_CACHE_SIZE_LIMIT [protected]

Reimplemented from aliroBasicCache.

Definition at line 200 of file objectcache.php.


The documentation for this class was generated from the following file:

Generated on Thu Apr 17 13:03:31 2008 for ALIRO by  doxygen 1.5.5