|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilGlobalCache:Public Member Functions | |
| isActive () | |
| isValid (string $key) | |
| isInstallable () | |
| isCacheServiceInstallable () | |
| getInstallationFailureReason () | |
| exists (string $key) | |
| set (string $key, $value, int $ttl=null) | |
| get (string $key) | |
| delete (string $key) | |
| flush (bool $complete=false) | |
| getInfo () | |
| setComponent (string $component) | |
| getComponent () | |
| setActive (bool $active) | |
| getActive () | |
| setServiceType (int $service_type) | |
| getServiceType () | |
Static Public Member Functions | |
| static | setup (ilGlobalCacheSettings $ilGlobalCacheSettings) |
| static | getInstance (?string $component) |
| static | log (string $message, int $log_level) |
| static | getAllInstallableTypes () |
| static | getAllTypes (bool $only_available=true) |
| static | lookupServiceClassName (int $service_type) |
| static | lookupServiceConfigName (int $service_type) |
| static | getSettings () |
| static | setSettings (ilGlobalCacheSettings $settings) |
| static | getActiveComponents () |
| static | setActiveComponents (array $active_components) |
| static | getAvailableComponents () |
| static | setAvailableComponents (array $available_components) |
Data Fields | |
| const | MSG = 'Global Cache not active, can not access cache' |
| const | ACTIVE = true |
| const | TYPE_STATIC = 0 |
| 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_RBAC_UA = 'rbac_ua' |
| const | COMP_EVENTS = 'events' |
| const | COMP_TPL_BLOCKS = 'tpl_blocks' |
| const | COMP_TPL_VARIABLES = 'tpl_variables' |
| const | COMP_GLOBAL_SCREEN = 'global_screen' |
Protected Member Functions | |
| __construct (int $service_type) | |
| checkSettings () | |
Static Protected Member Functions | |
| static | generateServiceId () |
Protected Attributes | |
| ilGlobalCacheService | $global_cache |
| string | $component = null |
| bool | $active = true |
| int | $service_type = ilGlobalCache::TYPE_STATIC |
Static Protected Attributes | |
| static array | $types |
| static array | $available_types |
| static array | $active_components = array() |
| static array | $available_components |
| static array | $type_per_component = array() |
| static string | $unique_service_id = null |
| static array | $instances = null |
| static ilGlobalCacheSettings | $settings = null |
| static array | $active_cache = array() |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilGlobalCache
Definition at line 24 of file class.ilGlobalCache.php.
|
protected |
Definition at line 140 of file class.ilGlobalCache.php.
References generateServiceId(), and setServiceType().
Here is the call graph for this function:
|
protected |
Definition at line 162 of file class.ilGlobalCache.php.
| ilGlobalCache::delete | ( | string | $key | ) |
Definition at line 368 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$key, and isActive().
Here is the call graph for this function:| ilGlobalCache::exists | ( | string | $key | ) |
| RuntimeException |
Definition at line 314 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$key.
| ilGlobalCache::flush | ( | bool | $complete = false | ) |
| RuntimeException |
Definition at line 380 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 180 of file class.ilGlobalCache.php.
References $unique_service_id, and CLIENT_ID.
Referenced by __construct().
Here is the caller graph for this function:| ilGlobalCache::get | ( | string | $key | ) |
| RuntimeException |
Definition at line 342 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$key, getComponent(), getServiceType(), isActive(), log(), ilGlobalCacheSettings\LOG_LEVEL_CHATTY, and lookupServiceClassName().
Referenced by ilCachedObjectDefinition\getInstance().
Here is the call graph for this function:
Here is the caller graph for this function:| ilGlobalCache::getActive | ( | ) |
Definition at line 409 of file class.ilGlobalCache.php.
References $active.
Referenced by isActive().
Here is the caller graph for this function:
|
static |
Definition at line 434 of file class.ilGlobalCache.php.
References $active_components.
|
static |
Definition at line 212 of file class.ilGlobalCache.php.
|
static |
Definition at line 224 of file class.ilGlobalCache.php.
|
static |
Definition at line 444 of file class.ilGlobalCache.php.
References $available_components.
Referenced by ilGlobalCacheSettings\activateAll(), ilGlobalCacheSettings\areAllComponentActivated(), ilGlobalCacheMetricsCollectedObjective\collectFrom(), and ilGlobalCacheSettings\writeToIniFile().
Here is the caller graph for this function:| ilGlobalCache::getComponent | ( | ) |
Definition at line 399 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 389 of file class.ilGlobalCache.php.
| ilGlobalCache::getInstallationFailureReason | ( | ) |
Definition at line 306 of file class.ilGlobalCache.php.
|
static |
Definition at line 126 of file class.ilGlobalCache.php.
References $component, $service_type, and getSettings().
Referenced by ilMMItemRepository\__construct(), ilCachedObjectDefinition\__construct(), arConnectorCache\__construct(), ilCachedLanguage\__construct(), ilCachedObjectDefinition\__destruct(), ilCachedObjectDefinition\flush(), ilMMCustomItemStorage\getCache(), ilMMItemStorage\getCache(), ilMMItemTranslationStorage\getCache(), ilMMTypeActionStorage\getCache(), HTML_Template_IT\getFile(), ilCachedObjectDefinition\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilObjectDefinition\readDefinitionData(), ilServicesGlobalCacheTest\testService(), and ilServicesGlobalCacheTest\testValues().
Here is the call graph for this function:
Here is the caller graph for this function:| ilGlobalCache::getServiceType | ( | ) |
Definition at line 419 of file class.ilGlobalCache.php.
References $service_type.
Referenced by get().
Here is the caller graph for this function:
|
static |
Definition at line 424 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$settings.
Referenced by getInstance().
Here is the caller graph for this function:| ilGlobalCache::isActive | ( | ) |
Definition at line 265 of file class.ilGlobalCache.php.
References $c, 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 301 of file class.ilGlobalCache.php.
| ilGlobalCache::isInstallable | ( | ) |
Definition at line 296 of file class.ilGlobalCache.php.
| ilGlobalCache::isValid | ( | string | $key | ) |
Definition at line 291 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$key.
|
static |
Definition at line 166 of file class.ilGlobalCache.php.
References $DIC, $message, and ILIAS\LTI\ToolProvider\getSettings().
Referenced by get(), HTML_Template_IT\init(), isActive(), and set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 239 of file class.ilGlobalCache.php.
References $service_type, TYPE_APC, and TYPE_MEMCACHED.
Referenced by ilGlobalCacheSettings\__toString(), and get().
Here is the caller graph for this function:
|
static |
Definition at line 251 of file class.ilGlobalCache.php.
References $service_type, TYPE_APC, and TYPE_MEMCACHED.
Referenced by ilGlobalCacheMetricsCollectedObjective\collectFrom().
Here is the caller graph for this function:| ilGlobalCache::set | ( | string | $key, |
| $value, | |||
| int | $ttl = null |
||
| ) |
| mixed | $value |
| RuntimeException |
Definition at line 327 of file class.ilGlobalCache.php.
References ILIAS\LTI\ToolProvider\$key, getComponent(), isActive(), log(), and ilGlobalCacheSettings\LOG_LEVEL_CHATTY.
Referenced by ilCachedObjectDefinition\getInstance().
Here is the call graph for this function:
Here is the caller graph for this function:| ilGlobalCache::setActive | ( | bool | $active | ) |
Definition at line 404 of file class.ilGlobalCache.php.
References $active.
|
static |
Definition at line 439 of file class.ilGlobalCache.php.
References $active_components.
Referenced by setup().
Here is the caller graph for this function:
|
static |
Definition at line 449 of file class.ilGlobalCache.php.
References $available_components.
| ilGlobalCache::setComponent | ( | string | $component | ) |
Definition at line 394 of file class.ilGlobalCache.php.
References $component.
| ilGlobalCache::setServiceType | ( | int | $service_type | ) |
Definition at line 414 of file class.ilGlobalCache.php.
References $service_type.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
Definition at line 429 of file class.ilGlobalCache.php.
References $settings, and ILIAS\LTI\ToolProvider\$settings.
Referenced by setup().
Here is the caller graph for this function:
|
static |
Definition at line 120 of file class.ilGlobalCache.php.
References ilGlobalCacheSettings\getActivatedComponents(), setActiveComponents(), and setSettings().
Referenced by ilInitialisation\initClientIniFile(), ilServicesGlobalCacheTest\testService(), and ilServicesGlobalCacheTest\testValues().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 116 of file class.ilGlobalCache.php.
Referenced by getActive(), and setActive().
|
staticprotected |
Definition at line 263 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 100 of file class.ilGlobalCache.php.
Referenced by getActiveComponents(), and setActiveComponents().
|
staticprotected |
Definition at line 101 of file class.ilGlobalCache.php.
Referenced by getAvailableComponents(), and setAvailableComponents().
|
staticprotected |
Definition at line 95 of file class.ilGlobalCache.php.
|
protected |
Definition at line 115 of file class.ilGlobalCache.php.
Referenced by getComponent(), getInstance(), and setComponent().
|
protected |
Definition at line 114 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 113 of file class.ilGlobalCache.php.
|
protected |
Definition at line 117 of file class.ilGlobalCache.php.
Referenced by getInstance(), getServiceType(), lookupServiceClassName(), lookupServiceConfigName(), and setServiceType().
|
staticprotected |
Definition at line 118 of file class.ilGlobalCache.php.
Referenced by setSettings().
|
staticprotected |
Definition at line 111 of file class.ilGlobalCache.php.
|
staticprotected |
Definition at line 90 of file class.ilGlobalCache.php.
Referenced by getAllInstallableTypes(), and getAllTypes().
|
staticprotected |
Definition at line 112 of file class.ilGlobalCache.php.
Referenced by generateServiceId().
| const ilGlobalCache::ACTIVE = true |
Definition at line 33 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_CLNG = 'clng' |
Definition at line 53 of file class.ilGlobalCache.php.
Referenced by ilCachedLanguage\__construct().
| const ilGlobalCache::COMP_EVENTS = 'events' |
Definition at line 77 of file class.ilGlobalCache.php.
Referenced by ilAppEventHandler\initListeners().
| const ilGlobalCache::COMP_GLOBAL_SCREEN = 'global_screen' |
Definition at line 89 of file class.ilGlobalCache.php.
Referenced by ilMMItemRepository\__construct(), arConnectorCache\__construct(), ilMMCustomItemStorage\getCache(), ilMMItemStorage\getCache(), ilMMItemTranslationStorage\getCache(), and ilMMTypeActionStorage\getCache().
| const ilGlobalCache::COMP_ILCTRL = 'ilctrl' |
Definition at line 65 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_OBJ_DEF = 'obj_def' |
Definition at line 57 of file class.ilGlobalCache.php.
Referenced by ilCachedObjectDefinition\__construct(), ilCachedObjectDefinition\__destruct(), ilCachedObjectDefinition\flush(), ilCachedObjectDefinition\getInstance(), and ilObjectDefinition\readDefinitionData().
| const ilGlobalCache::COMP_PLUGINS = 'plugins' |
Definition at line 69 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_RBAC_UA = 'rbac_ua' |
Definition at line 73 of file class.ilGlobalCache.php.
| const ilGlobalCache::COMP_TEMPLATE = 'tpl' |
Definition at line 61 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\getFile().
| const ilGlobalCache::COMP_TPL_BLOCKS = 'tpl_blocks' |
Definition at line 81 of file class.ilGlobalCache.php.
Referenced by HTML_Template_IT\init().
| const ilGlobalCache::COMP_TPL_VARIABLES = 'tpl_variables' |
Definition at line 85 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 29 of file class.ilGlobalCache.php.
| const ilGlobalCache::TYPE_APC = 3 |
| const ilGlobalCache::TYPE_FALLBACK = self::TYPE_STATIC |
Definition at line 49 of file class.ilGlobalCache.php.
| const ilGlobalCache::TYPE_MEMCACHED = 2 |
Definition at line 41 of file class.ilGlobalCache.php.
Referenced by ilGlobalCacheMetricsCollectedObjective\collectFrom(), ilGlobalCacheSetupAgent\getArrayToConfigTransformation(), lookupServiceClassName(), lookupServiceConfigName(), and ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest\testGetArrayToConfigTransformationWithDataServices().
| const ilGlobalCache::TYPE_STATIC = 0 |