ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
deleteCachedEntry (int $obj_id) | |
lookupObjId (int $ref_id) | |
lookupTitle (int $obj_id) | |
lookupType (int $obj_id) | |
lookupOwner (int $obj_id) | |
lookupDescription (int $obj_id) | |
lookupLastUpdate (int $obj_id) | |
lookupOfflineStatus (int $obj_id) | |
Check if supports centralized offline handling and is offline. More... | |
isTranslatedDescription (int $obj_id) | |
preloadObjectCache (array $obj_ids, string $lang='') | |
Stores object data in cache. More... | |
preloadTranslations (array $obj_ids, string $lang) | |
Preload translation information. More... | |
preloadReferenceCache (array $ref_ids, bool $incl_obj=true) | |
Protected Attributes | |
ilDBInterface | $db |
array | $trans_loaded = [] |
array | $reference_cache = [] |
array | $object_data_cache = [] |
array | $description_trans = [] |
Private Member Functions | |
__isReferenceCached (int $ref_id) | |
checks whether a reference id is already in cache or not More... | |
__isObjectCached (int $obj_id) | |
checks whether an object is already in cache or not More... | |
__storeReference (int $ref_id) | |
Stores Reference in cache. More... | |
__storeObjectData (int $obj_id) | |
Stores object data in cache. More... | |
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 ilObjectDataCache
This class caches some properties of the object_data table. Like title description owner obj_id
Definition at line 29 of file class.ilObjectDataCache.php.
ilObjectDataCache::__construct | ( | ) |
Definition at line 39 of file class.ilObjectDataCache.php.
References $DIC.
|
private |
checks whether an object is already in cache or not
Definition at line 135 of file class.ilObjectDataCache.php.
Referenced by lookupDescription(), lookupLastUpdate(), lookupOfflineStatus(), lookupOwner(), lookupTitle(), and lookupType().
|
private |
checks whether a reference id is already in cache or not
Definition at line 123 of file class.ilObjectDataCache.php.
Referenced by lookupObjId().
|
private |
Stores object data in cache.
Definition at line 167 of file class.ilObjectDataCache.php.
References $DIC, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by lookupDescription(), lookupLastUpdate(), lookupObjId(), lookupOfflineStatus(), lookupOwner(), lookupTitle(), and lookupType().
|
private |
Stores Reference in cache.
Maybe it could be useful to find all references of that object and store them also in the cache. But this would be an extra query.
Definition at line 149 of file class.ilObjectDataCache.php.
References $ref_id, ilDBConstants\FETCHMODE_ASSOC, and ILIAS\Repository\int().
Referenced by lookupObjId().
ilObjectDataCache::deleteCachedEntry | ( | int | $obj_id | ) |
Definition at line 45 of file class.ilObjectDataCache.php.
ilObjectDataCache::isTranslatedDescription | ( | int | $obj_id | ) |
Definition at line 215 of file class.ilObjectDataCache.php.
ilObjectDataCache::lookupDescription | ( | int | $obj_id | ) |
Definition at line 89 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupLastUpdate | ( | int | $obj_id | ) |
Definition at line 98 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupObjId | ( | int | $ref_id | ) |
Definition at line 52 of file class.ilObjectDataCache.php.
References $ref_id, __isReferenceCached(), __storeObjectData(), and __storeReference().
Referenced by ilLearningProgressBaseGUI\__construct(), ilLPListOfProgressGUI\__initDetails(), ilLPListOfObjectsGUI\__initDetails(), ilLearningProgressBaseGUI\__setSubTabs(), ilLPStatusCollection\_getCompleted(), ilLPStatusCollection\_getFailed(), ilLPStatusCollection\_getTypicalLearningTime(), ilLPStatusCollection\determineGroupingStatus(), ilContainerStartObjects\isFullfilled(), and ilSessionMailTemplateParticipantContext\resolveSpecificPlaceholder().
ilObjectDataCache::lookupOfflineStatus | ( | int | $obj_id | ) |
Check if supports centralized offline handling and is offline.
Definition at line 109 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupOwner | ( | int | $obj_id | ) |
Definition at line 80 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupTitle | ( | int | $obj_id | ) |
Definition at line 62 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Referenced by ilSurveyMailTemplateReminderContext\getDescription().
ilObjectDataCache::lookupType | ( | int | $obj_id | ) |
Definition at line 71 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLPMarks\__construct(), ilLearningProgressBaseGUI\__construct(), ilLPListOfProgressGUI\__initDetails(), ilLPListOfObjectsGUI\__initDetails(), ilLearningProgressBaseGUI\__setSubTabs(), ilLPStatusCollection\_getTypicalLearningTime(), ilLPStatusManualByTutor\getMembers(), and ilLPStatusCollection\getMembers().
ilObjectDataCache::preloadObjectCache | ( | array | $obj_ids, |
string | $lang = '' |
||
) |
Stores object data in cache.
int[] | $obj_ids | |
string | $lang |
Definition at line 225 of file class.ilObjectDataCache.php.
References $DIC, $lang, $res, ilDBConstants\FETCHMODE_OBJECT, if, ILIAS\Repository\int(), and preloadTranslations().
Referenced by preloadReferenceCache().
ilObjectDataCache::preloadReferenceCache | ( | array | $ref_ids, |
bool | $incl_obj = true |
||
) |
int[] | $ref_ids | |
bool | $incl_obj |
Definition at line 314 of file class.ilObjectDataCache.php.
References $res, ilDBConstants\FETCHMODE_ASSOC, ILIAS\Repository\int(), and preloadObjectCache().
ilObjectDataCache::preloadTranslations | ( | array | $obj_ids, |
string | $lang | ||
) |
Preload translation information.
int[] | $obj_ids | |
string | $lang |
Definition at line 281 of file class.ilObjectDataCache.php.
References $id, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by preloadObjectCache().
|
protected |
Definition at line 31 of file class.ilObjectDataCache.php.
|
protected |
Definition at line 37 of file class.ilObjectDataCache.php.
|
protected |
Definition at line 36 of file class.ilObjectDataCache.php.
|
protected |
Definition at line 35 of file class.ilObjectDataCache.php.
|
protected |
Definition at line 34 of file class.ilObjectDataCache.php.