
Public Member Functions | |
| clearCache ($immediate=false) | |
| cacheNow () | |
Protected Member Functions | |
| __clone () | |
Static Protected Member Functions | |
| static | getCachedSingleton ($class) |
Definition at line 87 of file objectcache.php.
| cachedSingleton::__clone | ( | ) | [protected] |
| static cachedSingleton::getCachedSingleton | ( | $ | class | ) | [static, protected] |
Definition at line 91 of file objectcache.php.
References aliroSingletonObjectCache::getInstance().
00091 { 00092 $objectcache = aliroSingletonObjectCache::getInstance(); 00093 $object = $objectcache->retrieve($class); 00094 if ($object == null OR !($object instanceof $class)) { 00095 $object = new $class(); 00096 $objectcache->store($object); 00097 } 00098 return $object; 00099 }
| cachedSingleton::clearCache | ( | $ | immediate = false |
) |
Reimplemented in aliroCommonExtHandler.
Definition at line 101 of file objectcache.php.
References aliroSingletonObjectCache::getInstance().
Referenced by aliroFolderHandler::delete(), aliroMenuHandler::deleteMenus(), aliroMenuHandler::publishMenus(), aliroExtensionHandler::removeExtensions(), aliroMenuHandler::saveMenu(), aliroMenuHandler::updateNames(), aliroMenuHandler::updateOrdering(), and aliroFolderHandler::updateOrdering().
00101 { 00102 $objectcache = aliroSingletonObjectCache::getInstance(); 00103 $classname = get_class($this); 00104 $objectcache->delete($classname); 00105 if ($immediate) { 00106 $instancevar = $classname.'::$instance'; 00107 eval("$instancevar = '$classname';"); 00108 } 00109 }
| cachedSingleton::cacheNow | ( | ) |
Definition at line 111 of file objectcache.php.
References aliroSingletonObjectCache::getInstance().
Referenced by smartClassMapper::checkDynamic().
00111 { 00112 aliroSingletonObjectCache::getInstance()->store($this); 00113 }
1.5.5