ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
class ilObjectDataCache More...
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) | |
__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() | |
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 20 of file class.ilObjectDataCache.php.
ilObjectDataCache::__isObjectCached | ( | $a_obj_id | ) |
checks whether an object is aleady in cache or not
private
int | $a_obj_id | object id |
Definition at line 114 of file class.ilObjectDataCache.php.
Referenced by lookupDescription(), lookupLastUpdate(), lookupOwner(), lookupTitle(), and lookupType().
ilObjectDataCache::__isReferenceCached | ( | $a_ref_id | ) |
checks whether an reference id is already in cache or not
private
int | $a_ref_id | reference id |
Definition at line 93 of file class.ilObjectDataCache.php.
Referenced by lookupObjId().
ilObjectDataCache::__storeObjectData | ( | $a_obj_id, | |
$a_lang = "" |
|||
) |
Stores object data in cache.
private
int | $a_obj_id | object id |
Definition at line 157 of file class.ilObjectDataCache.php.
References $db, $DIC, $ilDB, $ilUser, $query, $r, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by lookupDescription(), lookupLastUpdate(), lookupObjId(), lookupOwner(), lookupTitle(), and lookupType().
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.
private
int | $a_ref_id | reference id |
Definition at line 138 of file class.ilObjectDataCache.php.
References $db, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by lookupObjId().
ilObjectDataCache::deleteCachedEntry | ( | $a_obj_id | ) |
Definition at line 29 of file class.ilObjectDataCache.php.
ilObjectDataCache::isTranslatedDescription | ( | $a_obj_id | ) |
Definition at line 205 of file class.ilObjectDataCache.php.
ilObjectDataCache::lookupDescription | ( | $a_obj_id | ) |
Definition at line 69 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupLastUpdate | ( | $a_obj_id | ) |
Definition at line 77 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupObjId | ( | $a_ref_id | ) |
Definition at line 34 of file class.ilObjectDataCache.php.
References __isReferenceCached(), __storeObjectData(), and __storeReference().
ilObjectDataCache::lookupOwner | ( | $a_obj_id | ) |
Definition at line 61 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupTitle | ( | $a_obj_id | ) |
Definition at line 44 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::lookupType | ( | $a_obj_id | ) |
Definition at line 52 of file class.ilObjectDataCache.php.
References __isObjectCached(), and __storeObjectData().
ilObjectDataCache::preloadObjectCache | ( | $a_obj_ids, | |
$a_lang = "" |
|||
) |
Stores object data in cache.
private
int | $a_obj_id | object id |
Definition at line 218 of file class.ilObjectDataCache.php.
References $db, $DIC, $ilDB, $ilUser, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and preloadTranslations().
Referenced by preloadReferenceCache().
ilObjectDataCache::preloadReferenceCache | ( | $a_ref_ids, | |
$a_incl_obj = true |
|||
) |
Definition at line 298 of file class.ilObjectDataCache.php.
References $db, $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_ASSOC, and preloadObjectCache().
ilObjectDataCache::preloadTranslations | ( | $a_obj_ids, | |
$a_lang | |||
) |
Preload translation informations.
array | $a_obj_ids | array of object ids |
Definition at line 272 of file class.ilObjectDataCache.php.
References $db, $id, $ilDB, $r, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by preloadObjectCache().
ilObjectDataCache::$db = null |
Definition at line 15 of file class.ilObjectDataCache.php.
Referenced by __storeObjectData(), __storeReference(), preloadObjectCache(), preloadReferenceCache(), and preloadTranslations().
ilObjectDataCache::$description_trans = array() |
Definition at line 18 of file class.ilObjectDataCache.php.
ilObjectDataCache::$object_data_cache = array() |
Definition at line 17 of file class.ilObjectDataCache.php.
ilObjectDataCache::$reference_cache = array() |
Definition at line 16 of file class.ilObjectDataCache.php.