ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
class ilObjectDataCache 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... | |
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 | ( | ) |
|
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, ilDBConstants\FETCHMODE_OBJECT, and null.
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 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 ilLPStatusTypicalLearningTime\_getCompleted(), 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(), null, 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.