|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilGlobalCache. More...
Collaboration diagram for ilGlobalCache:Public Member Functions | |
| isActive () | |
| isValid ($key) | |
| isInstallable () | |
| isCacheServiceInstallable () | |
| getInstallationFailureReason () | |
| exists ($key) | |
| set ($key, $value, $ttl=NULL) | |
| get ($key) | |
| delete ($key) | |
| flush ($complete=false) | |
| getInfo () | |
| setComponent ($component) | |
| getComponent () | |
| setActive ($active) | |
| getActive () | |
| setServiceType ($service_type) | |
| getServiceType () | |
Static Public Member Functions | |
| static | setup (ilGlobalCacheSettings $ilGlobalCacheSettings) |
| static | getInstance ($component) |
| static | log ($message, $log_level) |
| static | getAllInstallableTypes () |
| static | getAllTypes () |
| static | lookupServiceClassName ($service_type) |
| static | getSettings () |
| static | setSettings ($settings) |
| static | getActiveComponents () |
| static | setActiveComponents ($active_components) |
| static | getAvailableComponents () |
| static | setAvailableComponents ($available_components) |
Data Fields | |
| const | MSG = 'Global Cache not active, can not access cache' |
| const | ACTIVE = true |
| const | TYPE_STATIC = 0 |
| const | TYPE_XCACHE = 1 |
| const | TYPE_MEMCACHED = 2 |
| const | TYPE_APC = 3 |
| const | TYPE_FALLBACK = self::TYPE_STATIC |
| const | COMP_CLNG = 'clng' |
| const | COMP_OBJ_DEF = 'obj_def' |
| const | COMP_TEMPLATE = 'tpl' |
| const | COMP_ILCTRL = 'ilctrl' |
| const | COMP_PLUGINS = 'plugins' |
| const | COMP_COMPONENT = 'comp' |
| const | COMP_RBAC_UA = 'rbac_ua' |
| const | COMP_EVENTS = 'events' |
| const | COMP_TPL_BLOCKS = 'tpl_blocks' |
| const | COMP_TPL_VARIABLES = 'tpl_variables' |
Protected Member Functions | |
| __construct ($service_type) | |
| checkSettings () | |
Static Protected Member Functions | |
| static | generateServiceId () |
Protected Attributes | |
| $global_cache | |
| $component | |
| $active = true | |
| $service_type = ilGlobalCache::TYPE_STATIC | |
Static Protected Attributes | |
| static | $types |
| static | $active_components = array() |
| static | $available_components |
| static | $type_per_component = array() |
| static | $unique_service_id = NULL |
| static | $instances |
| static | $settings |
| static | $active_cache = array() |
|
protected |
| $service_type |
Definition at line 124 of file class.ilGlobalCache.php.
References $service_type, checkSettings(), generateServiceId(), and setServiceType().
Here is the call graph for this function:
|
protected |
Definition at line 146 of file class.ilGlobalCache.php.
References getSettings(), and setSettings().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilGlobalCache::delete | ( | $key | ) |
| $key |
Definition at line 384 of file class.ilGlobalCache.php.
References isActive().
Here is the call graph for this function:| ilGlobalCache::exists | ( | $key | ) |
| $key |
| RuntimeException |
Definition at line 325 of file class.ilGlobalCache.php.
| ilGlobalCache::flush | ( | $complete = false | ) |
| bool | $complete |
| RuntimeException |
Definition at line 399 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 174 of file class.ilGlobalCache.php.
Referenced by __construct().
Here is the caller graph for this function:| ilGlobalCache::get | ( | $key | ) |
| $key |
| RuntimeException |
Definition at line 359 of file class.ilGlobalCache.php.
References getComponent(), getServiceType(), isActive(), log(), ilGlobalCacheSettings\LOG_LEVEL_CHATTY, and lookupServiceClassName().
Here is the call graph for this function:| ilGlobalCache::getActive | ( | ) |
Definition at line 444 of file class.ilGlobalCache.php.
References $active.
Referenced by isActive().
Here is the caller graph for this function:
|
static |
Definition at line 491 of file class.ilGlobalCache.php.
References $active_components.
|
static |
Definition at line 201 of file class.ilGlobalCache.php.
References $types.
|
static |
Definition at line 216 of file class.ilGlobalCache.php.
References $types.
|
static |
Definition at line 507 of file class.ilGlobalCache.php.
References $available_components.
Referenced by ilGlobalCacheSettings\writeToIniFile().
Here is the caller graph for this function:| ilGlobalCache::getComponent | ( | ) |
Definition at line 428 of file class.ilGlobalCache.php.
References $component.
Referenced by get(), isActive(), and set().
Here is the caller graph for this function:| ilGlobalCache::getInfo | ( | ) |
Definition at line 412 of file class.ilGlobalCache.php.
| ilGlobalCache::getInstallationFailureReason | ( | ) |
Definition at line 314 of file class.ilGlobalCache.php.
|
static |
| null | $component |
Definition at line 107 of file class.ilGlobalCache.php.
References $component, $service_type, and getSettings().
Referenced by ilGlobalCacheDBLayer\__construct(), ilCachedComponentData\__construct(), ilCachedCtrl\__construct(), ilCachedComponentData\__destruct(), ilCachedComponentData\flush(), ilCachedCtrl\flush(), ilGlobalCacheQueryWrapper\get(), HTML_Template_IT\getFile(), ilCachedComponentData\getInstance(), ilCachedCtrl\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilCachedCtrl\isActive(), and ilObjectDefinition\readDefinitionData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilGlobalCache::getServiceType | ( | ) |
Definition at line 463 of file class.ilGlobalCache.php.
References $service_type.
Referenced by get().
Here is the caller graph for this function:
|
static |
Definition at line 475 of file class.ilGlobalCache.php.
Referenced by checkSettings(), and getInstance().
Here is the caller graph for this function:| ilGlobalCache::isActive | ( | ) |
Definition at line 260 of file class.ilGlobalCache.php.
References getActive(), getComponent(), log(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by delete(), get(), and set().
Here is the call graph for this function:
Here is the caller graph for this function:| ilGlobalCache::isCacheServiceInstallable | ( | ) |
Definition at line 306 of file class.ilGlobalCache.php.
| ilGlobalCache::isInstallable | ( | ) |
Definition at line 298 of file class.ilGlobalCache.php.
| ilGlobalCache::isValid | ( | $key | ) |
| $key |
Definition at line 290 of file class.ilGlobalCache.php.
|
static |
| $message |
Definition at line 158 of file class.ilGlobalCache.php.
References $ilLog.
Referenced by get(), HTML_Template_IT\init(), isActive(), set(), and ilGlobalCacheSettings\writeToIniFile().
Here is the caller graph for this function:
|
static |
| $service_type |
Definition at line 233 of file class.ilGlobalCache.php.
References $service_type, TYPE_APC, TYPE_MEMCACHED, and TYPE_XCACHE.
Referenced by ilGlobalCacheSettings\__toString(), and get().
Here is the caller graph for this function:| ilGlobalCache::set | ( | $key, | |
| $value, | |||
$ttl = NULL |
|||
| ) |
| $key | ||
| $value | ||
| null | $ttl |
| RuntimeException |
Definition at line 342 of file class.ilGlobalCache.php.
References getComponent(), isActive(), log(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Here is the call graph for this function:| ilGlobalCache::setActive | ( | $active | ) |
| boolean | $active |
Definition at line 436 of file class.ilGlobalCache.php.
References $active.
|
static |
| array | $active_components |
Definition at line 499 of file class.ilGlobalCache.php.
References $active_components.
Referenced by setup().
Here is the caller graph for this function:
|
static |
| array | $available_components |
Definition at line 515 of file class.ilGlobalCache.php.
References $available_components.
| ilGlobalCache::setComponent | ( | $component | ) |
| string | $component |
Definition at line 420 of file class.ilGlobalCache.php.
References $component.
| ilGlobalCache::setServiceType | ( | $service_type | ) |
| int | $service_type |
Definition at line 452 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
| ilGlobalCacheSettings | $settings |
Definition at line 483 of file class.ilGlobalCache.php.
References $settings.
Referenced by checkSettings(), and setup().
Here is the caller graph for this function:
|
static |
| ilGlobalCacheSettings | $ilGlobalCacheSettings |
Definition at line 96 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\getActivatedComponents(), setActiveComponents(), and setSettings().
Referenced by ilInitialisation\initClientIniFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 82 of file class.ilGlobalCache.php.
Referenced by getActive(), and setActive().
|
staticprotected |
Definition at line 254 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 45 of file class.ilGlobalCache.php.
Referenced by getActiveComponents(), and setActiveComponents().
|
staticprotected |
Definition at line 49 of file class.ilGlobalCache.php.
Referenced by getAvailableComponents(), and setAvailableComponents().
|
protected |
Definition at line 78 of file class.ilGlobalCache.php.
Referenced by getComponent(), getInstance(), and setComponent().
|
protected |
Definition at line 74 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 70 of file class.ilGlobalCache.php.
|
protected |
Definition at line 86 of file class.ilGlobalCache.php.
Referenced by __construct(), getInstance(), getServiceType(), lookupServiceClassName(), and setServiceType().
|
staticprotected |
Definition at line 90 of file class.ilGlobalCache.php.
Referenced by setSettings().
|
staticprotected |
Definition at line 62 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 36 of file class.ilGlobalCache.php.
Referenced by getAllInstallableTypes(), and getAllTypes().
|
staticprotected |
Definition at line 66 of file class.ilGlobalCache.php.
| const ilGlobalCache::ACTIVE = true |
Definition at line 17 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_CLNG = 'clng' |
Definition at line 23 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_COMPONENT = 'comp' |
Definition at line 28 of file class.ilGlobalCache.php.
Referenced by ilCachedComponentData\__construct(), ilCachedComponentData\__destruct(), ilCachedComponentData\flush(), ilCachedComponentData\getInstance(), and ilObjectDefinition\readDefinitionData().
| const ilGlobalCache::COMP_EVENTS = 'events' |
Definition at line 30 of file class.ilGlobalCache.php.
Referenced by ilAppEventHandler\initListeners().
| const ilGlobalCache::COMP_ILCTRL = 'ilctrl' |
Definition at line 26 of file class.ilGlobalCache.php.
Referenced by ilCachedCtrl\__construct(), ilCachedCtrl\flush(), ilCachedCtrl\getInstance(), and ilCachedCtrl\isActive().
| const ilGlobalCache::COMP_OBJ_DEF = 'obj_def' |
Definition at line 24 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_PLUGINS = 'plugins' |
Definition at line 27 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_RBAC_UA = 'rbac_ua' |
Definition at line 29 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_TEMPLATE = 'tpl' |
Definition at line 25 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\getFile().
| const ilGlobalCache::COMP_TPL_BLOCKS = 'tpl_blocks' |
Definition at line 31 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
| const ilGlobalCache::COMP_TPL_VARIABLES = 'tpl_variables' |
Definition at line 32 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
| const ilGlobalCache::MSG = 'Global Cache not active, can not access cache' |
Definition at line 16 of file class.ilGlobalCache.php.
| const ilGlobalCache::TYPE_APC = 3 |
Definition at line 21 of file class.ilGlobalCache.php.
Referenced by lookupServiceClassName().
| const ilGlobalCache::TYPE_FALLBACK = self::TYPE_STATIC |
Definition at line 22 of file class.ilGlobalCache.php.
| const ilGlobalCache::TYPE_MEMCACHED = 2 |
Definition at line 20 of file class.ilGlobalCache.php.
Referenced by lookupServiceClassName().
| const ilGlobalCache::TYPE_STATIC = 0 |
Definition at line 18 of file class.ilGlobalCache.php.
| const ilGlobalCache::TYPE_XCACHE = 1 |
Definition at line 19 of file class.ilGlobalCache.php.
Referenced by lookupServiceClassName().