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 199 of file objectcache.php.


Member Function Documentation

static aliroSingletonObjectCache::getInstance (  )  [static]

Definition at line 204 of file objectcache.php.

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

00204                                           {
00205         return is_object(self::$instance) ? self::$instance : (self::$instance = new self::$instance);
00206     }

aliroSingletonObjectCache::getCachePath ( name  )  [protected]

Reimplemented from aliroBasicCache.

Definition at line 208 of file objectcache.php.

Referenced by delete().

00208                                             {
00209         return $this->basepath.'singleton/'.$name;
00210     }

aliroSingletonObjectCache::delete (  ) 

Definition at line 212 of file objectcache.php.

References getCachePath().

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

aliroSingletonObjectCache::deleteByExtension ( type  ) 

Definition at line 220 of file objectcache.php.

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


Member Data Documentation

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

Definition at line 200 of file objectcache.php.

aliroSingletonObjectCache::$timeout = _ALIRO_OBJECT_CACHE_TIME_LIMIT [protected]

Reimplemented from aliroBasicCache.

Definition at line 201 of file objectcache.php.

aliroSingletonObjectCache::$sizelimit = _ALIRO_OBJECT_CACHE_SIZE_LIMIT [protected]

Reimplemented from aliroBasicCache.

Definition at line 202 of file objectcache.php.


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

Generated on Wed May 14 13:02:00 2008 for ALIRO by  doxygen 1.5.5