ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilPersonalDesktopGUI Class Reference

GUI class for personal desktop. More...

+ Collaboration diagram for ilPersonalDesktopGUI:

Public Member Functions

 __construct ()
 constructor More...
 
 executeCommand ()
 execute command More...
 
 getStandardTemplates ()
 get standard templates More...
 
 getCenterColumnHTML ()
 Display center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 getLeftColumnHTML ()
 Display left column. More...
 
 prepareContentView ()
 
 displaySystemMessages ()
 Display system messages. More...
 
 multiarray_sort ($array, $key_sort)
 Returns the multidimenstional sorted array. More...
 
 setTabs ()
 set personal desktop tabs More...
 
 jumpToMemberships ()
 Jump to memberships. More...
 
 jumpToSelectedItems ()
 Jump to selected items. More...
 
 jumpToProfile ()
 workaround for menu in calendar only More...
 
 jumpToPortfolio ()
 
 jumpToSettings ()
 workaround for menu in calendar only More...
 
 jumpToBookmarks ()
 workaround for menu in calendar only More...
 
 jumpToNotes ()
 workaround for menu in calendar only More...
 
 jumpToComments ()
 workaround for menu in calendar only More...
 
 jumpToNews ()
 workaround for menu in calendar only More...
 
 jumpToLP ()
 workaround for menu in calendar only More...
 
 jumpToCalendar ()
 Jump to calendar. More...
 
 jumpToContacts ()
 Jump to contacts. More...
 
 jumpToWorkspace ()
 Jump to personal workspace. More...
 
 jumpToBadges ()
 Jump to badges. More...
 
 jumpToSkills ()
 Jump to personal skills. More...
 
 __loadNextClass ()
 
 __storeLastClass ($a_class)
 
 initColumn ($a_column_gui)
 
 displayHeader ()
 display header and locator More...
 

Data Fields

const CMD_JUMP_TO_MY_STAFF = "jumpToMyStaff"
 
 $tpl
 
 $lng
 
 $cmdClass = ''
 

Protected Member Functions

 jumpToMyStaff ()
 

Protected Attributes

 $ctrl
 
 $main_menu
 
 $user
 
 $error
 
 $settings
 
 $rbacsystem
 
 $plugin_admin
 
 $help
 
 $action_menu
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPersonalDesktopGUI::__construct ( )

constructor

Definition at line 82 of file class.ilPersonalDesktopGUI.php.

83 {
84 global $DIC;
85
86 $this->main_menu = $DIC["ilMainMenu"];
87 $this->user = $DIC->user();
88 $this->error = $DIC["ilErr"];
89 $this->settings = $DIC->settings();
90 $this->rbacsystem = $DIC->rbac()->system();
91 $this->plugin_admin = $DIC["ilPluginAdmin"];
92 $this->help = $DIC["ilHelp"];
93 $tpl = $DIC["tpl"];
94 $lng = $DIC->language();
95 $ilCtrl = $DIC->ctrl();
96 $ilMainMenu = $DIC["ilMainMenu"];
97 $ilUser = $DIC->user();
98 $ilErr = $DIC["ilErr"];
99
100
101 $this->tpl = $tpl;
102 $this->lng = $lng;
103 $this->ctrl = $ilCtrl;
104
105 $ilCtrl->setContext(
106 $ilUser->getId(),
107 "user"
108 );
109
110 $ilMainMenu->setActive("desktop");
111 $this->lng->loadLanguageModule("pdesk");
112 $this->lng->loadLanguageModule("pd"); // #16813
113
114 // catch hack attempts
115 if ($GLOBALS['DIC']['ilUser']->getId() == ANONYMOUS_USER_ID) {
116 $ilErr->raiseError($this->lng->txt("msg_not_available_for_anon"), $ilErr->MESSAGE);
117 }
118 $this->cmdClass = $_GET['cmdClass'];
119
120 $this->ctrl->saveParameter($this, array("view"));
121
122 //$tree->useCache(false);
123
124 $this->action_menu = new ilAdvancedSelectionListGUI();
125 }
user()
Definition: user.php:4
$_GET["client_id"]
error($a_errmsg)
set error message @access public
User interface class for advanced drop-down selection lists.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
global $ilCtrl
Definition: ilias.php:18
global $ilErr
Definition: raiseError.php:16
global $DIC
Definition: saml.php:7
settings()
Definition: settings.php:2
$ilUser
Definition: imgupload.php:18

References $_GET, $DIC, $GLOBALS, $ilCtrl, $ilErr, $ilUser, $lng, $tpl, error(), settings(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ __loadNextClass()

ilPersonalDesktopGUI::__loadNextClass ( )

Definition at line 778 of file class.ilPersonalDesktopGUI.php.

779 {
780 $stored_classes = array('ilpersonaldesktopgui',
781 'ilpersonalprofilegui',
782 'ilpdnotesgui',
783 'ilcalendarpresentationgui',
784 'ilbookmarkadministrationgui',
785 'illearningprogressgui');
786
787 if (isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'], $stored_classes)) {
788 return $_SESSION['il_pd_history'];
789 } else {
790 $this->ctrl->getNextClass($this);
791 }
792 }
$_SESSION["AccountId"]

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ __storeLastClass()

ilPersonalDesktopGUI::__storeLastClass (   $a_class)

Definition at line 793 of file class.ilPersonalDesktopGUI.php.

794 {
795 $_SESSION['il_pd_history'] = $a_class;
796 $this->cmdClass = $a_class;
797 }

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displayHeader()

ilPersonalDesktopGUI::displayHeader ( )

display header and locator

Definition at line 815 of file class.ilPersonalDesktopGUI.php.

816 {
817 $this->tpl->setTitle($this->lng->txt("personal_desktop"));
818 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displaySystemMessages()

ilPersonalDesktopGUI::displaySystemMessages ( )

Display system messages.

Definition at line 529 of file class.ilPersonalDesktopGUI.php.

530 {
531 include_once("Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
532 $sys_block = new ilPDSysMessageBlockGUI("ilpersonaldesktopgui", "show");
533 return $sys_block->getHTML();
534 }
BlockGUI class for System Messages block on personal desktop.

◆ executeCommand()

ilPersonalDesktopGUI::executeCommand ( )

execute command

Definition at line 130 of file class.ilPersonalDesktopGUI.php.

131 {
135
136 $next_class = $this->ctrl->getNextClass();
137 $this->ctrl->setReturn($this, "show");
138
139 $this->tpl->addCss(ilUtil::getStyleSheetLocation('filesystem', 'delos.css', 'Services/Calendar'));
140
141 // read last active subsection
142 if (isset($_GET['PDHistory']) && $_GET['PDHistory']) {
143 $next_class = $this->__loadNextClass();
144 }
145 $this->__storeLastClass($next_class);
146
147 switch ($next_class) {
148 case "ilbookmarkadministrationgui":
149 if ($ilSetting->get('disable_bookmarks')) {
150 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
151 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
152 return;
153 }
154 include_once("./Services/Bookmarks/classes/class.ilBookmarkAdministrationGUI.php");
155 $bookmark_gui = new ilBookmarkAdministrationGUI();
156 $this->getStandardTemplates();
157 $this->setTabs();
158 $ret = $this->ctrl->forwardCommand($bookmark_gui);
159 break;
160
161 // profile
162 case "ilpersonalprofilegui":
163 $this->getStandardTemplates();
164 $this->setTabs();
165 include_once("./Services/User/classes/class.ilPersonalProfileGUI.php");
166 $profile_gui = new ilPersonalProfileGUI();
167 $ret = $this->ctrl->forwardCommand($profile_gui);
168 break;
169
170 // settings
171 case "ilpersonalsettingsgui":
172 $this->getStandardTemplates();
173 $this->setTabs();
174 include_once("./Services/User/classes/class.ilPersonalSettingsGUI.php");
175 $settings_gui = new ilPersonalSettingsGUI();
176 $ret = $this->ctrl->forwardCommand($settings_gui);
177 break;
178
179 // profile
180 case "ilobjusergui":
181 include_once('./Services/User/classes/class.ilObjUserGUI.php');
182 $user_gui = new ilObjUserGUI("", $_GET["user"], false, false);
183 $ret = $this->ctrl->forwardCommand($user_gui);
184 break;
185
186 case 'ilcalendarpresentationgui':
187 $this->getStandardTemplates();
188 $this->displayHeader();
189 $this->tpl->setTitle($this->lng->txt("calendar"));
190 $this->setTabs();
191 include_once('./Services/Calendar/classes/class.ilCalendarPresentationGUI.php');
192 $cal = new ilCalendarPresentationGUI();
193 $ret = $this->ctrl->forwardCommand($cal);
194 $this->tpl->show();
195 break;
196
197 // pd notes
198 case "ilpdnotesgui":
199 if ($ilSetting->get('disable_notes') && $ilSetting->get('disable_comments')) {
200 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
201 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
202 return;
203 }
204
205 $this->getStandardTemplates();
206 $this->setTabs();
207 include_once("./Services/Notes/classes/class.ilPDNotesGUI.php");
208 $pd_notes_gui = new ilPDNotesGUI();
209 $ret = $this->ctrl->forwardCommand($pd_notes_gui);
210 break;
211
212 // pd news
213 case "ilpdnewsgui":
214 $this->getStandardTemplates();
215 $this->setTabs();
216 include_once("./Services/News/classes/class.ilPDNewsGUI.php");
217 $pd_news_gui = new ilPDNewsGUI();
218 $ret = $this->ctrl->forwardCommand($pd_news_gui);
219 break;
220
221 case "illearningprogressgui":
222 $this->getStandardTemplates();
223 $this->setTabs();
224 include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
226 $ret = $this->ctrl->forwardCommand($new_gui);
227
228 break;
229
230 case "ilcolumngui":
231 $this->getStandardTemplates();
232 $this->setTabs();
233 include_once("./Services/Block/classes/class.ilColumnGUI.php");
234 $column_gui = new ilColumnGUI("pd");
235 $this->initColumn($column_gui);
236 $this->show();
237 break;
238
239 case 'ilcontactgui':
240 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
241 if (!ilBuddySystem::getInstance()->isEnabled()) {
242 $ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $ilErr->MESSAGE);
243 }
244
245 $this->getStandardTemplates();
246 $this->setTabs();
247 $this->tpl->setTitle($this->lng->txt('mail_addressbook'));
248
249 require_once 'Services/Contact/classes/class.ilContactGUI.php';
250 $this->ctrl->forwardCommand(new ilContactGUI());
251 break;
252
253 case 'ilpersonalworkspacegui':
254 // $this->getStandardTemplates();
255 // $this->setTabs();
256 include_once 'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
257 $wsgui = new ilPersonalWorkspaceGUI();
258 $ret = $this->ctrl->forwardCommand($wsgui);
259 $this->tpl->show();
260 break;
261
262 case 'ilportfoliorepositorygui':
263 $this->getStandardTemplates();
264 $this->setTabs();
265 include_once 'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
266 $pfgui = new ilPortfolioRepositoryGUI();
267 $ret = $this->ctrl->forwardCommand($pfgui);
268 $this->tpl->show();
269 break;
270
271 case 'ilpersonalskillsgui':
272 $this->setTabs();
273 include_once './Services/Skill/classes/class.ilPersonalSkillsGUI.php';
274 $skgui = new ilPersonalSkillsGUI();
275 $this->getStandardTemplates();
276 $ret = $this->ctrl->forwardCommand($skgui);
277 $this->tpl->show();
278 break;
279
280 case 'ilbadgeprofilegui':
281 $this->getStandardTemplates();
282 $this->setTabs();
283 include_once './Services/Badge/classes/class.ilBadgeProfileGUI.php';
284 $bgui = new ilBadgeProfileGUI();
285 $ret = $this->ctrl->forwardCommand($bgui);
286 $this->tpl->show();
287 break;
288
289 case strtolower(ilMyStaffGUI::class):
290 $this->getStandardTemplates();
291 $mstgui = new ilMyStaffGUI();
292 $ret = $this->ctrl->forwardCommand($mstgui);
293 break;
294 case 'ilgroupuseractionsgui':
295 $this->getStandardTemplates();
296 $this->setTabs();
297 include_once './Modules/Group/UserActions/classes/class.ilGroupUserActionsGUI.php';
298 $ggui = new ilGroupUserActionsGUI();
299 $ret = $this->ctrl->forwardCommand($ggui);
300 $this->tpl->show();
301 break;
302 case 'redirect':
303 $this->redirect();
304 break;
305
306 default:
307 $this->getStandardTemplates();
308 $this->setTabs();
309 $cmd = $this->ctrl->getCmd("show");
310 $this->$cmd();
311 break;
312 }
313 $ret = null;
314 return $ret;
315 }
show()
returns the content of IniFile @access public
GUI class for personal bookmark administration.
Column user interface class.
Class ilObjUserTrackingGUI.
Class ilMyStaffGUI.
Class ilObjUserGUI.
Private Notes on PD.
displayHeader()
display header and locator
getStandardTemplates()
get standard templates
setTabs()
set personal desktop tabs
GUI class for personal profile.
GUI class for personal profile.
Personal skills GUI class.
GUI class for personal workspace.
Portfolio repository gui class.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static redirect($a_script)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$ret
Definition: parser.php:6
global $ilSetting
Definition: privfeed.php:17

References $_GET, $error, $ilErr, $ilSetting, $rbacsystem, $ret, $settings, __loadNextClass(), __storeLastClass(), displayHeader(), ilBuddySystem\getInstance(), getStandardTemplates(), ilUtil\getStyleSheetLocation(), initColumn(), ilLearningProgressBaseGUI\LP_CONTEXT_PERSONAL_DESKTOP, ilUtil\redirect(), ilUtil\sendFailure(), setTabs(), and show().

+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilPersonalDesktopGUI::getCenterColumnHTML ( )

Display center column.

Definition at line 379 of file class.ilPersonalDesktopGUI.php.

380 {
382 $ilPluginAdmin = $this->plugin_admin;
383
384 include_once("Services/Block/classes/class.ilColumnGUI.php");
385 $column_gui = new ilColumnGUI("pd", IL_COL_CENTER);
386 $this->initColumn($column_gui);
387
388 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
389 $column_gui->getCmdSide() == IL_COL_CENTER) {
390 $html = $ilCtrl->forwardCommand($column_gui);
391 } else {
392 if (!$ilCtrl->isAsynch()) {
393 if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) {
394 // right column wants center
395 if ($column_gui->getCmdSide() == IL_COL_RIGHT) {
396 $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
397 $this->initColumn($column_gui);
398 $html = $ilCtrl->forwardCommand($column_gui);
399 }
400 // left column wants center
401 if ($column_gui->getCmdSide() == IL_COL_LEFT) {
402 $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
403 $this->initColumn($column_gui);
404 $html = $ilCtrl->forwardCommand($column_gui);
405 }
406 } else {
407 $html = "";
408
409 // user interface plugin slot + default rendering
410 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
411 $uip = new ilUIHookProcessor(
412 "Services/PersonalDesktop",
413 "center_column",
414 array("personal_desktop_gui" => $this)
415 );
416 if (!$uip->replaced()) {
417 $html = $ilCtrl->getHTML($column_gui);
418 }
419 $html = $uip->getHTML($html);
420 }
421 }
422 }
423 return $html;
424 }
const IL_SCREEN_SIDE
const IL_COL_RIGHT
const IL_COL_CENTER
const IL_COL_LEFT
UI interface hook processor.
$html
Definition: example_001.php:87

References $ctrl, $html, $ilCtrl, $plugin_admin, IL_COL_CENTER, IL_COL_LEFT, IL_COL_RIGHT, IL_SCREEN_SIDE, and initColumn().

+ Here is the call graph for this function:

◆ getLeftColumnHTML()

ilPersonalDesktopGUI::getLeftColumnHTML ( )

Display left column.

Definition at line 472 of file class.ilPersonalDesktopGUI.php.

473 {
477 $ilPluginAdmin = $this->plugin_admin;
478
479 include_once("Services/Block/classes/class.ilColumnGUI.php");
480 $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
481 $this->initColumn($column_gui);
482
483 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
484 return "";
485 }
486
487 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
488 $column_gui->getCmdSide() == IL_COL_LEFT &&
489 $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
490 $html = $ilCtrl->forwardCommand($column_gui);
491 } else {
492 if (!$ilCtrl->isAsynch()) {
493 $html = "";
494
495 // user interface plugin slot + default rendering
496 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
497 $uip = new ilUIHookProcessor(
498 "Services/PersonalDesktop",
499 "left_column",
500 array("personal_desktop_gui" => $this)
501 );
502 if (!$uip->replaced()) {
503 $html = $ilCtrl->getHTML($column_gui);
504 }
505 $html = $uip->getHTML($html);
506 }
507 }
508
509 return $html;
510 }
const IL_SCREEN_FULL

References $ctrl, $html, $ilCtrl, $ilUser, $lng, $plugin_admin, $user, IL_COL_LEFT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and initColumn().

+ Here is the call graph for this function:

◆ getRightColumnHTML()

ilPersonalDesktopGUI::getRightColumnHTML ( )

Display right column.

Definition at line 429 of file class.ilPersonalDesktopGUI.php.

430 {
434 $ilPluginAdmin = $this->plugin_admin;
435
436 include_once("Services/Block/classes/class.ilColumnGUI.php");
437 $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
438 $this->initColumn($column_gui);
439
440 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
441 return "";
442 }
443
444 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
445 $column_gui->getCmdSide() == IL_COL_RIGHT &&
446 $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
447 $html = $ilCtrl->forwardCommand($column_gui);
448 } else {
449 if (!$ilCtrl->isAsynch()) {
450 $html = "";
451
452 // user interface plugin slot + default rendering
453 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
454 $uip = new ilUIHookProcessor(
455 "Services/PersonalDesktop",
456 "right_column",
457 array("personal_desktop_gui" => $this)
458 );
459 if (!$uip->replaced()) {
460 $html = $ilCtrl->getHTML($column_gui);
461 }
462 $html = $uip->getHTML($html);
463 }
464 }
465
466 return $html;
467 }

References $ctrl, $html, $ilCtrl, $ilUser, $lng, $plugin_admin, $user, IL_COL_RIGHT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and initColumn().

+ Here is the call graph for this function:

◆ getStandardTemplates()

ilPersonalDesktopGUI::getStandardTemplates ( )

get standard templates

Definition at line 320 of file class.ilPersonalDesktopGUI.php.

321 {
322 $this->tpl->getStandardTemplate();
323 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ initColumn()

ilPersonalDesktopGUI::initColumn (   $a_column_gui)

Definition at line 803 of file class.ilPersonalDesktopGUI.php.

804 {
805 $pd_set = new ilSetting("pd");
806 if ($pd_set->get("enable_block_moving")) {
807 $a_column_gui->setEnableMovement(true);
808 }
809 $a_column_gui->setActionMenu($this->action_menu);
810 }
ILIAS Setting Class.

Referenced by executeCommand(), getCenterColumnHTML(), getLeftColumnHTML(), and getRightColumnHTML().

+ Here is the caller graph for this function:

◆ jumpToBadges()

ilPersonalDesktopGUI::jumpToBadges ( )

Jump to badges.

Definition at line 765 of file class.ilPersonalDesktopGUI.php.

766 {
767 $this->ctrl->redirectByClass("ilbadgeprofilegui");
768 }

◆ jumpToBookmarks()

ilPersonalDesktopGUI::jumpToBookmarks ( )

workaround for menu in calendar only

Definition at line 654 of file class.ilPersonalDesktopGUI.php.

655 {
657
658 if ($ilSetting->get("disable_bookmarks")) {
659 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
660 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
661 return;
662 }
663
664 $this->ctrl->redirectByClass("ilbookmarkadministrationgui");
665 }

References $ilSetting, $settings, ilUtil\redirect(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ jumpToCalendar()

ilPersonalDesktopGUI::jumpToCalendar ( )

Jump to calendar.

Definition at line 718 of file class.ilPersonalDesktopGUI.php.

719 {
720 $this->ctrl->redirectByClass("ilcalendarpresentationgui");
721 }

◆ jumpToComments()

ilPersonalDesktopGUI::jumpToComments ( )

workaround for menu in calendar only

Definition at line 686 of file class.ilPersonalDesktopGUI.php.

687 {
689
690 if ($ilSetting->get('disable_comments')) {
691 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
692 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
693 return;
694 }
695
696 $this->ctrl->redirectByClass("ilpdnotesgui", "showPublicComments");
697 }

References $ilSetting, $settings, ilUtil\redirect(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ jumpToContacts()

ilPersonalDesktopGUI::jumpToContacts ( )

Jump to contacts.

Definition at line 726 of file class.ilPersonalDesktopGUI.php.

727 {
728 $this->ctrl->redirectByClass(array('ilpersonaldesktopgui', 'ilcontactgui'));
729 }

◆ jumpToLP()

ilPersonalDesktopGUI::jumpToLP ( )

workaround for menu in calendar only

Definition at line 710 of file class.ilPersonalDesktopGUI.php.

711 {
712 $this->ctrl->redirectByClass("illearningprogressgui");
713 }

◆ jumpToMemberships()

ilPersonalDesktopGUI::jumpToMemberships ( )

Jump to memberships.

Definition at line 591 of file class.ilPersonalDesktopGUI.php.

592 {
593 require_once 'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php';
594 $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), (int) $_GET['view']);
595 if ($viewSettings->enabledMemberships()) {
596 $_GET['view'] = $viewSettings->getMembershipsView();
597 $this->ctrl->setParameter($this, "view", $viewSettings->getMembershipsView());
598 }
599 $this->show();
600 }

References $_GET, $GLOBALS, show(), and user().

+ Here is the call graph for this function:

◆ jumpToMyStaff()

ilPersonalDesktopGUI::jumpToMyStaff ( )
protected

Definition at line 757 of file class.ilPersonalDesktopGUI.php.

758 {
759 $this->ctrl->redirectByClass(ilMyStaffGUI::class);
760 }

◆ jumpToNews()

ilPersonalDesktopGUI::jumpToNews ( )

workaround for menu in calendar only

Definition at line 702 of file class.ilPersonalDesktopGUI.php.

703 {
704 $this->ctrl->redirectByClass("ilpdnewsgui");
705 }

◆ jumpToNotes()

ilPersonalDesktopGUI::jumpToNotes ( )

workaround for menu in calendar only

Definition at line 670 of file class.ilPersonalDesktopGUI.php.

671 {
673
674 if ($ilSetting->get('disable_notes')) {
675 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
676 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
677 return;
678 }
679
680 $this->ctrl->redirectByClass("ilpdnotesgui");
681 }

References $ilSetting, $settings, ilUtil\redirect(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilPersonalDesktopGUI::jumpToPortfolio ( )

Definition at line 624 of file class.ilPersonalDesktopGUI.php.

625 {
626 // incoming back link from shared resource
627 $cmd = "";
628 if ($_REQUEST["dsh"]) {
629 $this->ctrl->setParameterByClass("ilportfoliorepositorygui", "shr_id", $_REQUEST["dsh"]);
630 $cmd = "showOther";
631 }
632
633 // used for goto links
634 if ($_GET["prt_id"]) {
635 $this->ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", (int) $_GET["prt_id"]);
636 $this->ctrl->setParameterByClass("ilobjportfoliogui", "gtp", (int) $_GET["gtp"]);
637 $this->ctrl->redirectByClass(array("ilportfoliorepositorygui", "ilobjportfoliogui"), "preview");
638 } else {
639 $this->ctrl->redirectByClass("ilportfoliorepositorygui", $cmd);
640 }
641 }

References $_GET.

◆ jumpToProfile()

ilPersonalDesktopGUI::jumpToProfile ( )

workaround for menu in calendar only

Definition at line 619 of file class.ilPersonalDesktopGUI.php.

620 {
621 $this->ctrl->redirectByClass("ilpersonalprofilegui");
622 }

◆ jumpToSelectedItems()

ilPersonalDesktopGUI::jumpToSelectedItems ( )

Jump to selected items.

Definition at line 605 of file class.ilPersonalDesktopGUI.php.

606 {
607 require_once 'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php';
608 $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), (int) $_GET['view']);
609 if ($viewSettings->enabledSelectedItems()) {
610 $_GET['view'] = $viewSettings->getSelectedItemsView();
611 $this->ctrl->setParameter($this, "view", $viewSettings->getSelectedItemsView());
612 }
613 $this->show();
614 }

References $_GET, $GLOBALS, show(), and user().

+ Here is the call graph for this function:

◆ jumpToSettings()

ilPersonalDesktopGUI::jumpToSettings ( )

workaround for menu in calendar only

Definition at line 646 of file class.ilPersonalDesktopGUI.php.

647 {
648 $this->ctrl->redirectByClass("ilpersonalsettingsgui");
649 }

◆ jumpToSkills()

ilPersonalDesktopGUI::jumpToSkills ( )

Jump to personal skills.

Definition at line 773 of file class.ilPersonalDesktopGUI.php.

774 {
775 $this->ctrl->redirectByClass("ilpersonalskillsgui");
776 }

◆ jumpToWorkspace()

ilPersonalDesktopGUI::jumpToWorkspace ( )

Jump to personal workspace.

Definition at line 734 of file class.ilPersonalDesktopGUI.php.

735 {
736 // incoming back link from shared resource
737 $cmd = "";
738 if ($_REQUEST["dsh"]) {
739 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "shr_id", $_REQUEST["dsh"]);
740 $cmd = "share";
741 }
742
743 if ($_REQUEST["wsp_id"]) {
744 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "wsp_id", (int) $_REQUEST["wsp_id"]);
745 }
746
747 if ($_REQUEST["gtp"]) {
748 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "gtp", (int) $_REQUEST["gtp"]);
749 }
750
751 $this->ctrl->redirectByClass("ilpersonalworkspacegui", $cmd);
752 }

◆ multiarray_sort()

ilPersonalDesktopGUI::multiarray_sort (   $array,
  $key_sort 
)

Returns the multidimenstional sorted array.

Returns the multidimenstional sorted array

Author
Muzaffar Altaf malta.nosp@m.f@tz.nosp@m.i.de
Parameters
array$arraysThe array to be sorted
string$key_sortThe keys on which array must be sorted @access public

Definition at line 546 of file class.ilPersonalDesktopGUI.php.

547 {
548 if ($array) {
549 $key_sorta = explode(";", $key_sort);
550
551 $multikeys = array_keys($array);
552 $keys = array_keys($array[$multikeys[0]]);
553
554 for ($m=0; $m < count($key_sorta); $m++) {
555 $nkeys[$m] = trim($key_sorta[$m]);
556 }
557 $n += count($key_sorta);
558
559 for ($i=0; $i < count($keys); $i++) {
560 if (!in_array($keys[$i], $key_sorta)) {
561 $nkeys[$n] = $keys[$i];
562 $n += "1";
563 }
564 }
565
566 for ($u=0;$u<count($array); $u++) {
567 $arr = $array[$multikeys[$u]];
568 for ($s=0; $s<count($nkeys); $s++) {
569 $k = $nkeys[$s];
570 $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
571 }
572 }
573 sort($output);
574 return $output;
575 }
576 }
$n
Definition: RandomTest.php:85
$i
Definition: disco.tpl.php:19
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\s+" &#(? foreach( $entity_files as $file) $output
$keys
$s
Definition: pwgen.php:45

References $i, $keys, $m, $n, $output, and $s.

◆ prepareContentView()

ilPersonalDesktopGUI::prepareContentView ( )

Definition at line 512 of file class.ilPersonalDesktopGUI.php.

513 {
514 // add template for content
515 $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
516 $this->tpl->getStandardTemplate();
517
518 // display infopanel if something happened
520
521 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd.svg"));
522 $this->tpl->setTitle($this->lng->txt("personal_desktop"));
523 $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
524 }
special template class to simplify handling of ITX/PEAR
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static infoPanel($a_keep=true)

References ilUtil\getImagePath(), and ilUtil\infoPanel().

+ Here is the call graph for this function:

◆ setTabs()

ilPersonalDesktopGUI::setTabs ( )

set personal desktop tabs

Definition at line 581 of file class.ilPersonalDesktopGUI.php.

582 {
583 $ilHelp = $this->help;
584
585 $ilHelp->setScreenIdComponent("pd");
586 }

References $help.

Referenced by executeCommand().

+ Here is the caller graph for this function:

Field Documentation

◆ $action_menu

ilPersonalDesktopGUI::$action_menu
protected

Definition at line 77 of file class.ilPersonalDesktopGUI.php.

◆ $cmdClass

ilPersonalDesktopGUI::$cmdClass = ''

Definition at line 72 of file class.ilPersonalDesktopGUI.php.

◆ $ctrl

ilPersonalDesktopGUI::$ctrl
protected

◆ $error

ilPersonalDesktopGUI::$error
protected

Definition at line 47 of file class.ilPersonalDesktopGUI.php.

Referenced by executeCommand().

◆ $help

ilPersonalDesktopGUI::$help
protected

Definition at line 67 of file class.ilPersonalDesktopGUI.php.

Referenced by setTabs().

◆ $lng

ilPersonalDesktopGUI::$lng

◆ $main_menu

ilPersonalDesktopGUI::$main_menu
protected

Definition at line 37 of file class.ilPersonalDesktopGUI.php.

◆ $plugin_admin

ilPersonalDesktopGUI::$plugin_admin
protected

◆ $rbacsystem

ilPersonalDesktopGUI::$rbacsystem
protected

Definition at line 57 of file class.ilPersonalDesktopGUI.php.

Referenced by executeCommand().

◆ $settings

ilPersonalDesktopGUI::$settings
protected

◆ $tpl

ilPersonalDesktopGUI::$tpl

Definition at line 69 of file class.ilPersonalDesktopGUI.php.

Referenced by __construct().

◆ $user

ilPersonalDesktopGUI::$user
protected

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

Referenced by getLeftColumnHTML(), and getRightColumnHTML().

◆ CMD_JUMP_TO_MY_STAFF

const ilPersonalDesktopGUI::CMD_JUMP_TO_MY_STAFF = "jumpToMyStaff"

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