ilForumAuthorInformationCache
More...
◆ getUserObjectById()
static ilForumAuthorInformationCache::getUserObjectById |
( |
|
$usr_id | ) |
|
|
static |
- Parameters
-
- Returns
- ilObjUser|null
Definition at line 88 of file class.ilForumAuthorInformationCache.php.
89 {
90 if(!$usr_id)
91 {
92 return NULL;
93 }
94
95 if(!array_key_exists($usr_id, self::$requested_usr_ids_key_map))
96 {
97 self::preloadUserObjects(array($usr_id));
98 }
99
100 return isset(self::$user_instances[$usr_id]) ? self::$user_instances[$usr_id] : NULL;
101 }
Referenced by ilForumAuthorInformation\initUserInstance().
◆ $requested_usr_ids
ilForumAuthorInformationCache::$requested_usr_ids = array() |
|
staticprotected |
◆ $requested_usr_ids_key_map
ilForumAuthorInformationCache::$requested_usr_ids_key_map = array() |
|
staticprotected |
◆ $user_instances
ilForumAuthorInformationCache::$user_instances = array() |
|
staticprotected |
The documentation for this class was generated from the following file: