◆ getUserObjectById()
static ilMailUserCache::getUserObjectById |
( |
|
$usr_id | ) |
|
|
static |
◆ preloadUserObjects()
static ilMailUserCache::preloadUserObjects |
( |
array |
$usr_ids | ) |
|
|
static |
- Parameters
-
Definition at line 33 of file class.ilMailUserCache.php.
References $DIC, $in, $query, $res, $row, array, and ilObject\setId().
Referenced by ilMailFolderTableGUI\fetchTableData(), and ilPDMailBlockGUI\preloadData().
37 $usr_ids_to_request = array_diff($usr_ids, self::$requested_usr_ids);
38 self::$requested_usr_ids = array_merge(self::$requested_usr_ids, $usr_ids_to_request);
39 self::$requested_usr_ids_key_map = array_flip(self::$requested_usr_ids);
41 if ($usr_ids_to_request) {
42 $in = $DIC->database()->in(
'ud.usr_id', $usr_ids_to_request,
false,
'integer');
44 SELECT ud.usr_id, login, firstname, lastname, title, gender, pprof.value public_profile,pup.value public_upload, pupgen.value public_gender 46 LEFT JOIN usr_pref pprof ON pprof.usr_id = ud.usr_id AND pprof.keyword = %s 47 LEFT JOIN usr_pref pupgen ON pupgen.usr_id = ud.usr_id AND pupgen.keyword = %s 48 LEFT JOIN usr_pref pup ON pup.usr_id = ud.usr_id AND pup.keyword = %s 52 $res = $DIC->database()->queryF(
54 array(
'text',
'text',
'text'),
55 array(
'public_profile',
'public_gender',
'public_upload')
58 while (
$row = $DIC->database()->fetchAssoc(
$res)) {
61 $user->setLogin(
$row[
'login']);
62 $user->setGender(
$row[
'gender']);
63 $user->setTitle(
$row[
'title']);
64 $user->setFirstname(
$row[
'firstname']);
65 $user->setLastname(
$row[
'lastname']);
66 $user->setPref(
'public_profile',
$row[
'public_profile']);
67 $user->setPref(
'public_upload',
$row[
'public_upload']);
68 $user->setPref(
'public_gender',
$row[
'public_gender']);
70 self::$user_instances[
$row[
'usr_id']] = $user;
setId($a_id)
set object id public
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
if(php_sapi_name() !='cli') $in
◆ $requested_usr_ids
ilMailUserCache::$requested_usr_ids = array() |
|
staticprotected |
◆ $requested_usr_ids_key_map
ilMailUserCache::$requested_usr_ids_key_map = array() |
|
staticprotected |
◆ $user_instances
ilMailUserCache::$user_instances = array() |
|
staticprotected |
The documentation for this class was generated from the following file: