|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
class ilObjectDataCache More...
Collaboration diagram for ilObjectDataCache:Public Member Functions | |
| __construct () | |
| deleteCachedEntry ($a_obj_id) | |
| lookupObjId ($a_ref_id) | |
| lookupTitle ($a_obj_id) | |
| lookupType ($a_obj_id) | |
| lookupOwner ($a_obj_id) | |
| lookupDescription ($a_obj_id) | |
| lookupLastUpdate ($a_obj_id) | |
| lookupOfflineStatus ($a_obj_id) | |
| Check if supports centralized offline handling and is offline. More... | |
| __isReferenceCached ($a_ref_id) | |
| checks whether an reference id is already in cache or not More... | |
| __isObjectCached ($a_obj_id) | |
| checks whether an object is aleady in cache or not More... | |
| __storeReference ($a_ref_id) | |
| Stores Reference in cache. More... | |
| __storeObjectData ($a_obj_id, $a_lang="") | |
| Stores object data in cache. More... | |
| isTranslatedDescription ($a_obj_id) | |
| preloadObjectCache ($a_obj_ids, $a_lang="") | |
| Stores object data in cache. More... | |
| preloadTranslations ($a_obj_ids, $a_lang) | |
| Preload translation informations. More... | |
| preloadReferenceCache ($a_ref_ids, $a_incl_obj=true) | |
Data Fields | |
| $db = null | |
| $reference_cache = array() | |
| $object_data_cache = array() | |
| $description_trans = array() | |
Protected Attributes | |
| $trans_loaded = [] | |
class ilObjectDataCache
This class caches some properties of the object_data table. Like title description owner obj_id
Definition at line 13 of file class.ilObjectDataCache.php.
| ilObjectDataCache::__construct | ( | ) |
Definition at line 23 of file class.ilObjectDataCache.php.
| ilObjectDataCache::__isObjectCached | ( | $a_obj_id | ) |
checks whether an object is aleady in cache or not
@access private
| int | $a_obj_id | object id |
Definition at line 131 of file class.ilObjectDataCache.php.
Referenced by lookupDescription(), lookupLastUpdate(), lookupOfflineStatus(), lookupOwner(), lookupTitle(), and lookupType().
Here is the caller graph for this function:| ilObjectDataCache::__isReferenceCached | ( | $a_ref_id | ) |
checks whether an reference id is already in cache or not
@access private
| int | $a_ref_id | reference id |
Definition at line 110 of file class.ilObjectDataCache.php.
Referenced by lookupObjId().
Here is the caller graph for this function:| ilObjectDataCache::__storeObjectData | ( | $a_obj_id, | |
$a_lang = "" |
|||
| ) |
Stores object data in cache.
@access private
| int | $a_obj_id | object id |
Definition at line 174 of file class.ilObjectDataCache.php.
References $db, $DIC, $ilDB, $ilUser, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by lookupDescription(), lookupLastUpdate(), lookupObjId(), lookupOfflineStatus(), lookupOwner(), lookupTitle(), and lookupType().
Here is the caller graph for this function:| ilObjectDataCache::__storeReference | ( | $a_ref_id | ) |
Stores Reference in cache.
Maybe it could be useful to find all references of that object andd store them also in the cache. But this would be an extra query.
@access private
| int | $a_ref_id | reference id |
Definition at line 155 of file class.ilObjectDataCache.php.
References $db, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by lookupObjId().
Here is the caller graph for this function:| ilObjectDataCache::deleteCachedEntry | ( | $a_obj_id | ) |
Definition at line 32 of file class.ilObjectDataCache.php.
| ilObjectDataCache::isTranslatedDescription | ( | $a_obj_id | ) |
Definition at line 226 of file class.ilObjectDataCache.php.
| ilObjectDataCache::lookupDescription | ( | $a_obj_id | ) |
Definition at line 72 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Here is the call graph for this function:| ilObjectDataCache::lookupLastUpdate | ( | $a_obj_id | ) |
Definition at line 80 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Here is the call graph for this function:| ilObjectDataCache::lookupObjId | ( | $a_ref_id | ) |
Definition at line 37 of file class.ilObjectDataCache.php.
References __isReferenceCached(), __storeObjectData(), and __storeReference().
Here is the call graph for this function:| ilObjectDataCache::lookupOfflineStatus | ( | $a_obj_id | ) |
Check if supports centralized offline handling and is offline.
| $a_obj_id |
Definition at line 93 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Here is the call graph for this function:| ilObjectDataCache::lookupOwner | ( | $a_obj_id | ) |
Definition at line 64 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Here is the call graph for this function:| ilObjectDataCache::lookupTitle | ( | $a_obj_id | ) |
Definition at line 47 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Here is the call graph for this function:| ilObjectDataCache::lookupType | ( | $a_obj_id | ) |
Definition at line 55 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
Here is the call graph for this function:| ilObjectDataCache::preloadObjectCache | ( | $a_obj_ids, | |
$a_lang = "" |
|||
| ) |
Stores object data in cache.
@access private
| int | $a_obj_id | object id |
Definition at line 239 of file class.ilObjectDataCache.php.
References $db, $DIC, $ilDB, $ilUser, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and preloadTranslations().
Referenced by preloadReferenceCache().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectDataCache::preloadReferenceCache | ( | $a_ref_ids, | |
$a_incl_obj = true |
|||
| ) |
Definition at line 320 of file class.ilObjectDataCache.php.
References $db, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, and preloadObjectCache().
Here is the call graph for this function:| ilObjectDataCache::preloadTranslations | ( | $a_obj_ids, | |
| $a_lang | |||
| ) |
Preload translation informations.
| array | $a_obj_ids | array of object ids |
Definition at line 295 of file class.ilObjectDataCache.php.
References $db, $ilDB, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by preloadObjectCache().
Here is the caller graph for this function:| ilObjectDataCache::$db = null |
Definition at line 18 of file class.ilObjectDataCache.php.
Referenced by __storeObjectData(), __storeReference(), preloadObjectCache(), preloadReferenceCache(), and preloadTranslations().
| ilObjectDataCache::$description_trans = array() |
Definition at line 21 of file class.ilObjectDataCache.php.
| ilObjectDataCache::$object_data_cache = array() |
Definition at line 20 of file class.ilObjectDataCache.php.
| ilObjectDataCache::$reference_cache = array() |
Definition at line 19 of file class.ilObjectDataCache.php.
|
protected |
Definition at line 16 of file class.ilObjectDataCache.php.