ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMailUserCache Class Reference
+ Collaboration diagram for ilMailUserCache:

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

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 9 of file class.ilMailUserCache.php.

Member Function Documentation

static ilMailUserCache::getUserObjectById (   $usr_id)
static
Parameters
int$usr_id
Returns
ilObjUser|null

Definition at line 85 of file class.ilMailUserCache.php.

References $usr_id.

Referenced by ilPDMailBlockGUI\fillRow().

{
if(!$usr_id)
{
return NULL;
}
if(!array_key_exists($usr_id, self::$requested_usr_ids_key_map))
{
self::preloadUserObjects(array($usr_id));
}
return isset(self::$user_instances[$usr_id]) ? self::$user_instances[$usr_id] : NULL;
}

+ Here is the caller graph for this function:

Field Documentation

ilMailUserCache::$requested_usr_ids = array()
staticprotected

Definition at line 21 of file class.ilMailUserCache.php.

ilMailUserCache::$requested_usr_ids_key_map = array()
staticprotected

Definition at line 27 of file class.ilMailUserCache.php.

ilMailUserCache::$user_instances = array()
staticprotected

Definition at line 15 of file class.ilMailUserCache.php.


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