ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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

◆ getUserObjectById()

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

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

References array.

Referenced by ilPDMailBlockGUI\fillRow(), and ilMailFolderTableGUI\isLuceneSearchEnabled().

86  {
87  if(!$usr_id)
88  {
89  return NULL;
90  }
91 
92  if(!array_key_exists($usr_id, self::$requested_usr_ids_key_map))
93  {
94  self::preloadUserObjects(array($usr_id));
95  }
96 
97  return isset(self::$user_instances[$usr_id]) ? self::$user_instances[$usr_id] : NULL;
98  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

Field Documentation

◆ $requested_usr_ids

ilMailUserCache::$requested_usr_ids = array()
staticprotected

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

◆ $requested_usr_ids_key_map

ilMailUserCache::$requested_usr_ids_key_map = array()
staticprotected

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

◆ $user_instances

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: