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

Class ilUserUtil. More...

+ Collaboration diagram for ilUserUtil:

Static Public Member Functions

static getNamePresentation ($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
 Default behaviour is: More...
 
static hasPublicProfile ($a_user_id)
 Has public profile. More...
 
static getProfileLink ($a_usr_id)
 Get link to personal profile Return empty string in case of not public profile. More...
 
static getPossibleStartingPoints ($a_force_all=false)
 Get all valid starting points. More...
 
static setStartingPoint ($a_value, $a_ref_id=null)
 Set starting point setting. More...
 
static getStartingPoint ()
 Get current starting point setting. More...
 
static getStartingPointAsUrl ()
 Get current starting point setting as URL. More...
 
static getStartingObject ()
 Get ref id of starting object. More...
 
static togglePersonalStartingPoint ($a_value)
 Toggle personal starting point setting. More...
 
static hasPersonalStartingPoint ()
 Can starting point be personalized? More...
 
static hasPersonalStartPointPref ()
 Did user set any personal starting point (yet)? More...
 
static getPersonalStartingPoint ()
 Get current personal starting point. More...
 
static setPersonalStartingPoint ($a_value, $a_ref_id=null)
 Set personal starting point setting. More...
 
static getPersonalStartingObject ()
 Get ref id of personal starting object. More...
 

Data Fields

const START_PD_OVERVIEW = 1
 
const START_PD_SUBSCRIPTION = 2
 
const START_PD_BOOKMARKS = 3
 
const START_PD_NOTES = 4
 
const START_PD_NEWS = 5
 
const START_PD_WORKSPACE = 6
 
const START_PD_PORTFOLIO = 7
 
const START_PD_SKILLS = 8
 
const START_PD_LP = 9
 
const START_PD_CALENDAR = 10
 
const START_PD_MAIL = 11
 
const START_PD_CONTACTS = 12
 
const START_PD_PROFILE = 13
 
const START_PD_SETTINGS = 14
 
const START_REPOSITORY = 15
 
const START_REPOSITORY_OBJ = 16
 

Detailed Description

Class ilUserUtil.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilUserUtil.php.

Member Function Documentation

◆ getNamePresentation()

static ilUserUtil::getNamePresentation (   $a_user_id,
  $a_user_image = false,
  $a_profile_link = false,
  $a_profile_back_link = "",
  $a_force_first_lastname = false,
  $a_omit_login = false,
  $a_sortable = true,
  $a_return_data_array = false 
)
static

Default behaviour is:

  • lastname, firstname if public profile enabled
  • [loginname] (always) modifications by jposselt at databay . de : if $a_user_id is an array of user ids the method returns an array of "id" => "NamePresentation" pairs.

...

Parameters
booleansortable should be used in table presentions. output is "Doe, John" title is ommited

Definition at line 42 of file class.ilUserUtil.php.

45 {
46 global $lng, $ilCtrl, $ilDB;
47
48 if (!($return_as_array = is_array($a_user_id)))
49 $a_user_id = array($a_user_id);
50
51 $sql = 'SELECT
52 a.usr_id,
53 firstname,
54 lastname,
55 title,
56 login,
57 b.value public_profile,
58 c.value public_title
59 FROM
60 usr_data a
61 LEFT JOIN
62 usr_pref b ON
63 (a.usr_id = b.usr_id AND
64 b.keyword = %s)
65 LEFT JOIN
66 usr_pref c ON
67 (a.usr_id = c.usr_id AND
68 c.keyword = %s)
69 WHERE ' . $ilDB->in('a.usr_id', $a_user_id, false, 'integer');
70
71 $userrow = $ilDB->queryF($sql, array('text', 'text'), array('public_profile', 'public_title'));
72
73 $names = array();
74
75 $data = array();
76 while ($row = $ilDB->fetchObject($userrow))
77 {
78 $pres = '';
79 $d = array("id" => $row->usr_id, "title" => "", "lastname" => "", "firstname" => "", "img" => "", "link" => "",
80 "public_profile" => "");
81 $has_public_profile = in_array($row->public_profile, array("y", "g"));
82 if ($a_force_first_lastname || $has_public_profile)
83 {
84 $title = "";
85 if($row->public_title == "y" && $row->title)
86 {
87 $title = $row->title . " ";
88 }
89 $d["title"] = $title;
90 if($a_sortable)
91 {
92 $pres = $row->lastname;
93 if(strlen($row->firstname))
94 {
95 $pres .= (', '.$row->firstname.' ');
96 }
97 }
98 else
99 {
100 $pres = $title;
101 if(strlen($row->firstname))
102 {
103 $pres .= $row->firstname.' ';
104 }
105 $pres .= ($row->lastname.' ');
106 }
107 $d["firstname"] = $row->firstname;
108 $d["lastname"] = $row->lastname;
109 }
110 $d["login"] = $row->login;
111 $d["public_profile"] = $has_public_profile;
112
113
114 if(!$a_omit_login)
115 {
116 $pres.= "[".$row->login."]";
117 }
118
119 if ($a_profile_link && $has_public_profile)
120 {
121 $ilCtrl->setParameterByClass("ilpublicuserprofilegui", "user_id", $row->usr_id);
122 if ($a_profile_back_link != "")
123 {
124 $ilCtrl->setParameterByClass("ilpublicuserprofilegui", "back_url",
125 rawurlencode($a_profile_back_link));
126 }
127 $link = $ilCtrl->getLinkTargetByClass("ilpublicuserprofilegui", "getHTML");
128 $pres = '<a href="'.$link.'">'.$pres.'</a>';
129 $d["link"] = $link;
130 }
131
132 if ($a_user_image)
133 {
134 $img = ilObjUser::_getPersonalPicturePath($row->usr_id, "xxsmall");
135 $pres = '<img border="0" src="'.$img.'" alt="'.$lng->txt("icon").
136 " ".$lng->txt("user_picture").'" /> '.$pres;
137 $d["img"] = $img;
138 }
139
140 $names[$row->usr_id] = $pres;
141 $data[$row->usr_id] = $d;
142 }
143
144 foreach($a_user_id as $id)
145 {
146 if (!$names[$id])
147 $names[$id] = "unknown";
148 }
149
150 if ($a_return_data_array)
151 {
152 if ($return_as_array)
153 {
154 return $data;
155 }
156 else
157 {
158 return current($data);
159 }
160 }
161 return $return_as_array ? $names : $names[$a_user_id[0]];
162 }
static _getPersonalPicturePath($a_usr_id, $a_size="small", $a_force_pic=false, $a_prevent_no_photo_image=false)
Get path to personal picture.
$data
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40
global $ilDB

References $d, $data, $ilCtrl, $ilDB, $img, $lng, $row, and ilObjUser\_getPersonalPicturePath().

Referenced by ilSurveyAppraiseesTableGUI\__construct(), ilSystemNotification\compose(), ilSurveyParticipantsGUI\confirmAdminAppraiseesCloseObject(), ilExerciseManagementGUI\confirmDeassignMembersObject(), ilSurveyParticipantsGUI\confirmDeleteAppraiseesObject(), ilMailingListsGUI\confirmDeleteMembers(), ilSurveyParticipantsGUI\confirmDeleteRatersObject(), ilConsultationHoursGUI\confirmRejectBooking(), ilCourseParticipantsGroupsGUI\confirmRemove(), ilObjBlogGUI\confirmRemoveContributor(), ilExSubmissionTeamGUI\confirmRemoveTeamMemberObject(), ilExSubmissionTeamGUI\createTeamObject(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilPageObjectGUI\edit(), ilExerciseManagementGUI\executeCommand(), ilSharedResourceGUI\executeCommand(), ilBookingReservationsTableGUI\fillRow(), ilExAssignmentListTextTableGUI\fillRow(), ilWikiPagesTableGUI\fillRow(), ilWikiRecentChangesTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilUsersOnlineBlockGUI\fillRow(), ilUserForTagTableGUI\fillRow(), ilExcDeliveredFilesTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilAwarenessData\getData(), ilContributorTableGUI\getItems(), ilExAssignmentPeerReviewTableGUI\getItems(), ilExAssignmentTeamTableGUI\getItems(), ilNoteGUI\getNoteListHTML(), ilAwarenessData\getOnlineUserData(), ilWikiPagesTableGUI\getPages(), ilDataCollectionRecord\getStandardFieldHTML(), ilWorkspaceAccessTableGUI\importData(), ilObjSurveyGUI\infoScreen(), ilObjFileGUI\infoScreenForward(), ilLearningProgressBaseGUI\initEditUserForm(), ilExerciseManagementGUI\initGroupForm(), ilExPeerReviewGUI\initPeerReviewItemForm(), ilSurveyExecutionGUI\outSurveyPage(), ilExAssignmentListTextTableGUI\parse(), ilConsultationHourBookingTableGUI\parse(), ilCronManagerTableGUI\parseJobToData(), ilBuddySystemRelationsTableGUI\populate(), ilBlogPostingGUI\postOutputProcessing(), ilWikiPageGUI\preview(), ilExPeerReviewGUI\renderInfoWidget(), ilObjBlogGUI\renderList(), ilObjBlogGUI\renderNavigationByAuthors(), ilPublicUserProfileGUI\renderTitle(), ilLMMailNotification\send(), ilBuddySystemNotification\send(), ilObjDataCollection\sendNotification(), ilWikiUtil\sendNotification(), ilObjSurvey\sendNotificationMail(), ilNote\sendNotifications(), ilPageObjectGUI\setDefaultLinkXml(), ilMailingListsGUI\showMembersList(), ilPageObjectGUI\showPage(), ilExAssignmentPeerReviewOverviewTableGUI\translateUserIds(), and ilPageObject\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPersonalStartingObject()

static ilUserUtil::getPersonalStartingObject ( )
static

Get ref id of personal starting object.

Returns
int

Definition at line 493 of file class.ilUserUtil.php.

494 {
495 global $ilUser;
496
497 $ref_id = $ilUser->getPref("usr_starting_point_ref_id");
498 if(!$ref_id)
499 {
501 }
502 return $ref_id;
503 }
static getStartingObject()
Get ref id of starting object.
$ref_id
Definition: sahs_server.php:39
global $ilUser
Definition: imgupload.php:15

References $ilUser, $ref_id, and getStartingObject().

Referenced by getStartingPointAsUrl(), and ilPersonalSettingsGUI\initGeneralSettingsForm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPersonalStartingPoint()

static ilUserUtil::getPersonalStartingPoint ( )
static

Get current personal starting point.

Returns
int

Definition at line 433 of file class.ilUserUtil.php.

434 {
435 global $ilUser;
436
437 $valid = array_keys(self::getPossibleStartingPoints());
438 $current = $ilUser->getPref("usr_starting_point");
439 if($current == self::START_REPOSITORY_OBJ)
440 {
441 return $current;
442 }
443 else if(!$current || !in_array($current, $valid))
444 {
445 return self::getStartingPoint();
446 }
447 return $current;
448 }
static getStartingPoint()
Get current starting point setting.
$valid

References $ilUser, $valid, and getStartingPoint().

Referenced by getStartingPointAsUrl(), and ilPersonalSettingsGUI\initGeneralSettingsForm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPossibleStartingPoints()

static ilUserUtil::getPossibleStartingPoints (   $a_force_all = false)
static

Get all valid starting points.

Returns
array

Definition at line 212 of file class.ilUserUtil.php.

213 {
214 global $ilSetting, $lng;
215
216 // for all conditions: see ilMainMenuGUI
217
218 $all = array();
219
220 $all[self::START_PD_OVERVIEW] = 'overview';
221
222 if($a_force_all || ($ilSetting->get('disable_my_offers') == 0 &&
223 $ilSetting->get('disable_my_memberships') == 0))
224 {
225 $all[self::START_PD_SUBSCRIPTION] = 'my_courses_groups';
226 }
227
228 if($a_force_all || !$ilSetting->get("disable_personal_workspace"))
229 {
230 $all[self::START_PD_WORKSPACE] = 'personal_workspace';
231 }
232
233 include_once('./Services/Calendar/classes/class.ilCalendarSettings.php');
235 if($a_force_all || $settings->isEnabled())
236 {
237 $all[self::START_PD_CALENDAR] = 'calendar';
238 }
239
240 $all[self::START_REPOSITORY] = 'repository';
241
242 foreach($all as $idx => $lang)
243 {
244 $all[$idx] = $lng->txt($lang);
245 }
246
247 return $all;
248 }
static _getInstance()
get singleton instance
const START_REPOSITORY
const START_PD_WORKSPACE
const START_PD_CALENDAR
const START_PD_OVERVIEW
const START_PD_SUBSCRIPTION
global $ilSetting
Definition: privfeed.php:40

References $ilSetting, $lang, $lng, ilCalendarSettings\_getInstance(), START_PD_CALENDAR, START_PD_OVERVIEW, START_PD_SUBSCRIPTION, START_PD_WORKSPACE, and START_REPOSITORY.

Referenced by ilPersonalSettingsGUI\initGeneralSettingsForm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getProfileLink()

static ilUserUtil::getProfileLink (   $a_usr_id)
static

Get link to personal profile Return empty string in case of not public profile.

Parameters
type$a_usr_id
Returns
string

Definition at line 190 of file class.ilUserUtil.php.

191 {
192 $public_profile = ilObjUser::_lookupPref($a_usr_id,'public_profile');
193 if($public_profile != 'y' and $public_profile != 'g')
194 {
195 return '';
196 }
197
198 $GLOBALS['ilCtrl']->setParameterByClass('ilpublicuserprofilegui','user',$a_usr_id);
199 return $GLOBALS['ilCtrl']->getLinkTargetByClass('ilpublicuserprofilegui','getHTML');
200 }
_lookupPref($a_usr_id, $a_keyword)
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276

References $GLOBALS, and ilObjUser\_lookupPref().

+ Here is the call graph for this function:

◆ getStartingObject()

static ilUserUtil::getStartingObject ( )
static

Get ref id of starting object.

Returns
int

Definition at line 385 of file class.ilUserUtil.php.

386 {
387 global $ilSetting;
388
389 return $ilSetting->get("usr_starting_point_ref_id");
390 }

References $ilSetting.

Referenced by getPersonalStartingObject(), and getStartingPointAsUrl().

+ Here is the caller graph for this function:

◆ getStartingPoint()

static ilUserUtil::getStartingPoint ( )
static

Get current starting point setting.

Returns
int

Definition at line 286 of file class.ilUserUtil.php.

287 {
288 global $ilSetting, $ilUser;
289
290 $valid = array_keys(self::getPossibleStartingPoints());
291 $current = $ilSetting->get("usr_starting_point");
292 if($current == self::START_REPOSITORY_OBJ)
293 {
294 return $current;
295 }
296 else if(!$current || !in_array($current, $valid))
297 {
298 $current = self::START_PD_OVERVIEW;
299
300 // #10715 - if 1 is disabled overview will display the current default
301 if($ilSetting->get('disable_my_offers') == 0 &&
302 $ilSetting->get('disable_my_memberships') == 0 &&
303 $ilSetting->get('personal_items_default_view') == 1)
304 {
306 }
307
308 self::setStartingPoint($current);
309 }
310 if($ilUser->getId() == ANONYMOUS_USER_ID ||
311 !$ilUser->getId()) // #18531
312 {
313 $current = self::START_REPOSITORY;
314 }
315 return $current;
316 }
static setStartingPoint($a_value, $a_ref_id=null)
Set starting point setting.

References $ilSetting, $ilUser, $valid, setStartingPoint(), START_PD_OVERVIEW, START_PD_SUBSCRIPTION, and START_REPOSITORY.

Referenced by getPersonalStartingPoint(), and getStartingPointAsUrl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStartingPointAsUrl()

static ilUserUtil::getStartingPointAsUrl ( )
static

Get current starting point setting as URL.

Returns
string

self::START_PD_LP => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP',

Definition at line 323 of file class.ilUserUtil.php.

324 {
325 global $tree, $ilUser;
326
327 $ref_id = 1;
328 if(self::hasPersonalStartingPoint())
329 {
330 $current = self::getPersonalStartingPoint();
331 if($current == self::START_REPOSITORY_OBJ)
332 {
334 }
335 }
336 else
337 {
338 $current = self::getStartingPoint();
339 if($current == self::START_REPOSITORY_OBJ)
340 {
342 }
343 }
344 switch($current)
345 {
348 if($ref_id &&
350 !$tree->isDeleted($ref_id))
351 {
352 include_once('./Services/Link/classes/class.ilLink.php');
353 return ilLink::_getStaticLink($ref_id,'',true);
354 }
355 // invalid starting object, overview is fallback
356 $current = self::START_PD_OVERVIEW;
357 // fallthrough
358
359 default:
360 $map = array(
361 self::START_PD_OVERVIEW => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSelectedItems',
362 self::START_PD_SUBSCRIPTION => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToMemberships',
363 // self::START_PD_BOOKMARKS => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks',
364 // self::START_PD_NOTES => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes',
365 // self::START_PD_NEWS => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews',
366 self::START_PD_WORKSPACE => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace',
367 // self::START_PD_PORTFOLIO => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio',
368 // self::START_PD_SKILLS => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills',
370 self::START_PD_CALENDAR => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar',
371 // self::START_PD_MAIL => 'ilias.php?baseClass=ilMailGUI',
372 // self::START_PD_CONTACTS => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts',
373 // self::START_PD_PROFILE => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile',
374 // self::START_PD_SETTINGS => 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings'
375 );
376 return $map[$current];
377 }
378 }
static _lookupObjId($a_id)
static getPersonalStartingObject()
Get ref id of personal starting object.
static getPersonalStartingPoint()
Get current personal starting point.
const START_REPOSITORY_OBJ

References $ilUser, $ref_id, ilLink\_getStaticLink(), ilObject\_lookupObjId(), getPersonalStartingObject(), getPersonalStartingPoint(), getStartingObject(), getStartingPoint(), START_PD_OVERVIEW, START_REPOSITORY, and START_REPOSITORY_OBJ.

Referenced by ilMainMenuGUI\getHeaderURL().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasPersonalStartingPoint()

static ilUserUtil::hasPersonalStartingPoint ( )
static

Can starting point be personalized?

Returns
bool

Definition at line 409 of file class.ilUserUtil.php.

410 {
411 global $ilSetting;
412
413 return $ilSetting->get("usr_starting_point_personal");
414 }

References $ilSetting.

Referenced by ilPersonalSettingsGUI\initGeneralSettingsForm(), and ilPersonalSettingsGUI\saveGeneralSettings().

+ Here is the caller graph for this function:

◆ hasPersonalStartPointPref()

static ilUserUtil::hasPersonalStartPointPref ( )
static

Did user set any personal starting point (yet)?

Returns
bool

Definition at line 421 of file class.ilUserUtil.php.

422 {
423 global $ilUser;
424
425 return (bool)$ilUser->getPref("usr_starting_point");
426 }

References $ilUser.

Referenced by ilPersonalSettingsGUI\initGeneralSettingsForm().

+ Here is the caller graph for this function:

◆ hasPublicProfile()

static ilUserUtil::hasPublicProfile (   $a_user_id)
static

Has public profile.

Parameters

return

Definition at line 170 of file class.ilUserUtil.php.

171 {
172 global $ilDB;
173
174 $set = $ilDB->query("SELECT value FROM usr_pref ".
175 " WHERE usr_id = ".$ilDB->quote($a_user_id, "integer").
176 " and keyword = ".$ilDB->quote("public_profile", "text")
177 );
178 $rec = $ilDB->fetchAssoc($set);
179
180 return in_array($rec["value"], array("y", "g"));
181 }

References $ilDB.

Referenced by ilPageObjectGUI\setDefaultLinkXml().

+ Here is the caller graph for this function:

◆ setPersonalStartingPoint()

static ilUserUtil::setPersonalStartingPoint (   $a_value,
  $a_ref_id = null 
)
static

Set personal starting point setting.

Parameters
int$a_value
int$a_ref_id
Returns
boolean

Definition at line 457 of file class.ilUserUtil.php.

458 {
459 global $ilUser, $tree;
460
461 if(!$a_value)
462 {
463 $ilUser->setPref("usr_starting_point", null);
464 $ilUser->setPref("usr_starting_point_ref_id", null);
465 return;
466 }
467
468 if($a_value == self::START_REPOSITORY_OBJ)
469 {
470 $a_ref_id = (int)$a_ref_id;
471 if(ilObject::_lookupObjId($a_ref_id) &&
472 !$tree->isDeleted($a_ref_id))
473 {
474 $ilUser->setPref("usr_starting_point", $a_value);
475 $ilUser->setPref("usr_starting_point_ref_id", $a_ref_id);
476 return true;
477 }
478 }
479 $valid = array_keys(self::getPossibleStartingPoints());
480 if(in_array($a_value, $valid))
481 {
482 $ilUser->setPref("usr_starting_point", $a_value);
483 return true;
484 }
485 return false;
486 }

References $ilUser, $valid, and ilObject\_lookupObjId().

Referenced by ilPersonalSettingsGUI\saveGeneralSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setStartingPoint()

static ilUserUtil::setStartingPoint (   $a_value,
  $a_ref_id = null 
)
static

Set starting point setting.

Parameters
int$a_value
int$a_ref_id
Returns
boolean

Definition at line 257 of file class.ilUserUtil.php.

258 {
259 global $ilSetting, $tree;
260
261 if($a_value == self::START_REPOSITORY_OBJ)
262 {
263 $a_ref_id = (int)$a_ref_id;
264 if(ilObject::_lookupObjId($a_ref_id) &&
265 !$tree->isDeleted($a_ref_id))
266 {
267 $ilSetting->set("usr_starting_point", $a_value);
268 $ilSetting->set("usr_starting_point_ref_id", $a_ref_id);
269 return true;
270 }
271 }
272 $valid = array_keys(self::getPossibleStartingPoints());
273 if(in_array($a_value, $valid))
274 {
275 $ilSetting->set("usr_starting_point", $a_value);
276 return true;
277 }
278 return false;
279 }

References $ilSetting, $valid, and ilObject\_lookupObjId().

Referenced by getStartingPoint(), and ilObjSystemFolderGUI\saveBasicSettingsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ togglePersonalStartingPoint()

static ilUserUtil::togglePersonalStartingPoint (   $a_value)
static

Toggle personal starting point setting.

Parameters
bool$a_value

Definition at line 397 of file class.ilUserUtil.php.

398 {
399 global $ilSetting;
400
401 $ilSetting->set("usr_starting_point_personal", (bool)$a_value);
402 }

References $ilSetting.

Referenced by ilObjSystemFolderGUI\saveBasicSettingsObject().

+ Here is the caller graph for this function:

Field Documentation

◆ START_PD_BOOKMARKS

const ilUserUtil::START_PD_BOOKMARKS = 3

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

◆ START_PD_CALENDAR

const ilUserUtil::START_PD_CALENDAR = 10

Definition at line 23 of file class.ilUserUtil.php.

Referenced by getPossibleStartingPoints().

◆ START_PD_CONTACTS

const ilUserUtil::START_PD_CONTACTS = 12

Definition at line 25 of file class.ilUserUtil.php.

◆ START_PD_LP

const ilUserUtil::START_PD_LP = 9

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

◆ START_PD_MAIL

const ilUserUtil::START_PD_MAIL = 11

Definition at line 24 of file class.ilUserUtil.php.

◆ START_PD_NEWS

const ilUserUtil::START_PD_NEWS = 5

Definition at line 18 of file class.ilUserUtil.php.

◆ START_PD_NOTES

const ilUserUtil::START_PD_NOTES = 4

Definition at line 17 of file class.ilUserUtil.php.

◆ START_PD_OVERVIEW

const ilUserUtil::START_PD_OVERVIEW = 1

◆ START_PD_PORTFOLIO

const ilUserUtil::START_PD_PORTFOLIO = 7

Definition at line 20 of file class.ilUserUtil.php.

◆ START_PD_PROFILE

const ilUserUtil::START_PD_PROFILE = 13

Definition at line 26 of file class.ilUserUtil.php.

◆ START_PD_SETTINGS

const ilUserUtil::START_PD_SETTINGS = 14

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

◆ START_PD_SKILLS

const ilUserUtil::START_PD_SKILLS = 8

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

◆ START_PD_SUBSCRIPTION

const ilUserUtil::START_PD_SUBSCRIPTION = 2

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

Referenced by getPossibleStartingPoints(), and getStartingPoint().

◆ START_PD_WORKSPACE

const ilUserUtil::START_PD_WORKSPACE = 6

Definition at line 19 of file class.ilUserUtil.php.

Referenced by getPossibleStartingPoints().

◆ START_REPOSITORY

const ilUserUtil::START_REPOSITORY = 15

◆ START_REPOSITORY_OBJ

const ilUserUtil::START_REPOSITORY_OBJ = 16

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