ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilForumAuthorInformationCache Class Reference

ilForumAuthorInformationCache More...

+ Collaboration diagram for ilForumAuthorInformationCache:

Static Public Member Functions

static getUserObjectById ($usr_id)
 

Static Protected Attributes

static $user_instances = array()
 
static $requested_usr_ids = array()
 
static $requested_usr_ids_key_map = array()
 

Detailed Description

Member Function Documentation

◆ getUserObjectById()

static ilForumAuthorInformationCache::getUserObjectById (   $usr_id)
static
Parameters
int$usr_id
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().

+ Here is the caller graph for this function:

Field Documentation

◆ $requested_usr_ids

ilForumAuthorInformationCache::$requested_usr_ids = array()
staticprotected

Definition at line 22 of file class.ilForumAuthorInformationCache.php.

◆ $requested_usr_ids_key_map

ilForumAuthorInformationCache::$requested_usr_ids_key_map = array()
staticprotected

Definition at line 28 of file class.ilForumAuthorInformationCache.php.

◆ $user_instances

ilForumAuthorInformationCache::$user_instances = array()
staticprotected

Definition at line 16 of file class.ilForumAuthorInformationCache.php.


The documentation for this class was generated from the following file: