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

GUI class for personal desktop. More...

+ Collaboration diagram for ilPersonalDesktopGUI:

Public Member Functions

 ilPersonalDesktopGUI ()
 constructor More...
 
executeCommand ()
 execute command More...
 
 redirect ()
 directly redirects a call More...
 
 getStandardTemplates ()
 get standard templates More...
 
 getTreeModeTemplates ()
 get tree mode templates More...
 
 getCenterColumnHTML ()
 Display center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 getLeftColumnHTML ()
 Display left column. More...
 
 prepareContentView ()
 
 removeMember ()
 copied from usr_personaldesktop.php More...
 
 displaySystemMessages ()
 Display system messages. More...
 
 multiarray_sort ($array, $key_sort)
 Returns the multidimenstional sorted array. More...
 
 setTabs ()
 set personal desktop tabs 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...
 
 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...
 
 jumpToSkills ()
 Jump to personal skills. More...
 
 __loadNextClass ()
 
 __storeLastClass ($a_class)
 
 initColumn ($a_column_gui)
 
 displayHeader ()
 display header and locator More...
 

Data Fields

 $tpl
 
 $lng
 
 $ilias
 
 $cmdClass = ''
 

Protected Attributes

 $action_menu
 

Detailed Description

Member Function Documentation

◆ __loadNextClass()

ilPersonalDesktopGUI::__loadNextClass ( )

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

741 {
742 $stored_classes = array('ilpersonaldesktopgui',
743 'ilpersonalprofilegui',
744 'ilpdnotesgui',
745 'ilcalendarpresentationgui',
746 'ilbookmarkadministrationgui',
747 'illearningprogressgui');
748
749 if(isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'],$stored_classes))
750 {
751 return $_SESSION['il_pd_history'];
752 }
753 else
754 {
755 $this->ctrl->getNextClass($this);
756 }
757 }
$_SESSION["AccountId"]

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ __storeLastClass()

ilPersonalDesktopGUI::__storeLastClass (   $a_class)

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

759 {
760 $_SESSION['il_pd_history'] = $a_class;
761 $this->cmdClass = $a_class;
762 }

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displayHeader()

ilPersonalDesktopGUI::displayHeader ( )

display header and locator

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

782 {
783 $this->tpl->setTitle($this->lng->txt("personal_desktop"));
784 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displaySystemMessages()

ilPersonalDesktopGUI::displaySystemMessages ( )

Display system messages.

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

509 {
510 include_once("Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
511 $sys_block = new ilPDSysMessageBlockGUI("ilpersonaldesktopgui", "show");
512 return $sys_block->getHTML();
513 }
BlockGUI class for System Messages block on personal desktop.

◆ executeCommand()

& ilPersonalDesktopGUI::executeCommand ( )

execute command

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

73 {
74 global $ilSetting, $rbacsystem, $ilErr;
75
76 $next_class = $this->ctrl->getNextClass();
77 $this->ctrl->setReturn($this, "show");
78
79 $this->tpl->addCss(ilUtil::getStyleSheetLocation('filesystem','delos.css','Services/Calendar'));
80
81 // read last active subsection
82 if (isset($_GET['PDHistory']) && $_GET['PDHistory'])
83 {
84 $next_class = $this->__loadNextClass();
85 }
86 $this->__storeLastClass($next_class);
87
88 switch($next_class)
89 {
90 case "ilbookmarkadministrationgui":
91 if ($ilSetting->get('disable_bookmarks'))
92 {
93 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
94 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
95 return;
96 }
97 include_once("./Services/Bookmarks/classes/class.ilBookmarkAdministrationGUI.php");
98 $bookmark_gui = new ilBookmarkAdministrationGUI();
99 if ($bookmark_gui->getMode() == 'tree') {
100 $this->getTreeModeTemplates();
101 } else {
102 $this->getStandardTemplates();
103 }
104 $this->setTabs();
105 $ret =& $this->ctrl->forwardCommand($bookmark_gui);
106 break;
107
108 // profile
109 case "ilpersonalprofilegui":
110 $this->getStandardTemplates();
111 $this->setTabs();
112 include_once("./Services/User/classes/class.ilPersonalProfileGUI.php");
113 $profile_gui = new ilPersonalProfileGUI();
114 $ret =& $this->ctrl->forwardCommand($profile_gui);
115 break;
116
117 // settings
118 case "ilpersonalsettingsgui":
119 $this->getStandardTemplates();
120 $this->setTabs();
121 include_once("./Services/User/classes/class.ilPersonalSettingsGUI.php");
122 $settings_gui = new ilPersonalSettingsGUI();
123 $ret =& $this->ctrl->forwardCommand($settings_gui);
124 break;
125
126 // profile
127 case "ilobjusergui":
128 include_once('./Services/User/classes/class.ilObjUserGUI.php');
129 $user_gui = new ilObjUserGUI("",$_GET["user"], false, false);
130 $ret =& $this->ctrl->forwardCommand($user_gui);
131 break;
132
133 case 'ilcalendarpresentationgui':
134 $this->getStandardTemplates();
135 $this->displayHeader();
136 $this->tpl->setTitle($this->lng->txt("calendar"));
137 $this->setTabs();
138 include_once('./Services/Calendar/classes/class.ilCalendarPresentationGUI.php');
139 $cal = new ilCalendarPresentationGUI();
140 $ret = $this->ctrl->forwardCommand($cal);
141 $this->tpl->show();
142 break;
143
144 // pd notes
145 case "ilpdnotesgui":
146 if ($ilSetting->get('disable_notes'))
147 {
148 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
149 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
150 return;
151 }
152
153 $this->getStandardTemplates();
154 $this->setTabs();
155 include_once("./Services/Notes/classes/class.ilPDNotesGUI.php");
156 $pd_notes_gui = new ilPDNotesGUI();
157 $ret =& $this->ctrl->forwardCommand($pd_notes_gui);
158 break;
159
160 // pd news
161 case "ilpdnewsgui":
162 $this->getStandardTemplates();
163 $this->setTabs();
164 include_once("./Services/News/classes/class.ilPDNewsGUI.php");
165 $pd_news_gui = new ilPDNewsGUI();
166 $ret =& $this->ctrl->forwardCommand($pd_news_gui);
167 break;
168
169 case "illearningprogressgui":
170 $this->getStandardTemplates();
171 $this->setTabs();
172 include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
174 $ret =& $this->ctrl->forwardCommand($new_gui);
175
176 break;
177
178 case "ilcolumngui":
179 $this->getStandardTemplates();
180 $this->setTabs();
181 include_once("./Services/Block/classes/class.ilColumnGUI.php");
182 $column_gui = new ilColumnGUI("pd");
183 $this->initColumn($column_gui);
184 $this->show();
185 break;
186
187 case 'ilcontactgui':
188 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
189 if(!ilBuddySystem::getInstance()->isEnabled())
190 {
191 $ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $ilErr->MESSAGE);
192 }
193
194 $this->getStandardTemplates();
195 $this->setTabs();
196 $this->tpl->setTitle($this->lng->txt('mail_addressbook'));
197
198 require_once 'Services/Contact/classes/class.ilContactGUI.php';
199 $this->ctrl->forwardCommand(new ilContactGUI());
200 break;
201
202 case 'ilpersonalworkspacegui':
203 $this->getStandardTemplates();
204 $this->setTabs();
205 include_once 'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
206 $wsgui = new ilPersonalWorkspaceGUI();
207 $ret = $this->ctrl->forwardCommand($wsgui);
208 $this->tpl->show();
209 break;
210
211 case 'ilportfoliorepositorygui':
212 $this->getStandardTemplates();
213 $this->setTabs();
214 include_once 'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
215 $pfgui = new ilPortfolioRepositoryGUI();
216 $ret = $this->ctrl->forwardCommand($pfgui);
217 $this->tpl->show();
218 break;
219
220 case 'ilpersonalskillsgui':
221 $this->setTabs();
222 include_once './Services/Skill/classes/class.ilPersonalSkillsGUI.php';
223 $skgui = new ilPersonalSkillsGUI();
224 $this->getStandardTemplates();
225 $ret = $this->ctrl->forwardCommand($skgui);
226 $this->tpl->show();
227 break;
228
229 case 'redirect':
230 $this->redirect();
231 break;
232
233 default:
234 $this->getStandardTemplates();
235 $this->setTabs();
236 $cmd = $this->ctrl->getCmd("show");
237 $this->$cmd();
238 break;
239 }
240 $ret = null;
241 return $ret;
242 }
$_GET["client_id"]
show()
returns the content of IniFile @access public
GUI class for personal bookmark administration.
Column user interface class.
Class ilObjUserTrackingGUI.
Class ilObjUserGUI.
Private Notes on PD.
displayHeader()
display header and locator
getStandardTemplates()
get standard templates
getTreeModeTemplates()
get tree mode templates
redirect()
directly redirects a call
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)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $ilSetting
Definition: privfeed.php:40
$cmd
Definition: sahs_server.php:35

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

+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilPersonalDesktopGUI::getCenterColumnHTML ( )

Display center column.

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

338 {
339 global $ilCtrl, $ilPluginAdmin;
340
341 include_once("Services/Block/classes/class.ilColumnGUI.php");
342 $column_gui = new ilColumnGUI("pd", IL_COL_CENTER);
343 $this->initColumn($column_gui);
344
345 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
346 $column_gui->getCmdSide() == IL_COL_CENTER)
347 {
348 $html = $ilCtrl->forwardCommand($column_gui);
349 }
350 else
351 {
352 if (!$ilCtrl->isAsynch())
353 {
354 if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
355 {
356 // right column wants center
357 if ($column_gui->getCmdSide() == IL_COL_RIGHT)
358 {
359 $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
360 $this->initColumn($column_gui);
361 $html = $ilCtrl->forwardCommand($column_gui);
362 }
363 // left column wants center
364 if ($column_gui->getCmdSide() == IL_COL_LEFT)
365 {
366 $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
367 $this->initColumn($column_gui);
368 $html = $ilCtrl->forwardCommand($column_gui);
369 }
370 }
371 else
372 {
373 $html = "";
374
375 // user interface plugin slot + default rendering
376 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
377 $uip = new ilUIHookProcessor("Services/PersonalDesktop", "center_column",
378 array("personal_desktop_gui" => $this));
379 if (!$uip->replaced())
380 {
381 $html = $ilCtrl->getHTML($column_gui);
382 }
383 $html = $uip->getHTML($html);
384
385 }
386 }
387 }
388 return $html;
389 }
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
global $ilCtrl
Definition: ilias.php:18

References $html, $ilCtrl, 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 437 of file class.ilPersonalDesktopGUI.php.

438 {
439 global $ilUser, $lng, $ilCtrl, $ilPluginAdmin;
440
441 include_once("Services/Block/classes/class.ilColumnGUI.php");
442 $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
443 $this->initColumn($column_gui);
444
445 if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
446 {
447 return "";
448 }
449
450 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
451 $column_gui->getCmdSide() == IL_COL_LEFT &&
452 $column_gui->getScreenMode() == IL_SCREEN_SIDE)
453 {
454 $html = $ilCtrl->forwardCommand($column_gui);
455 }
456 else
457 {
458 if (!$ilCtrl->isAsynch())
459 {
460 $html = "";
461
462 // user interface plugin slot + default rendering
463 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
464 $uip = new ilUIHookProcessor("Services/PersonalDesktop", "left_column",
465 array("personal_desktop_gui" => $this));
466 if (!$uip->replaced())
467 {
468 $html = $ilCtrl->getHTML($column_gui);
469 }
470 $html = $uip->getHTML($html);
471 }
472 }
473
474 return $html;
475 }
const IL_SCREEN_FULL
global $ilUser
Definition: imgupload.php:15

References $html, $ilCtrl, $ilUser, $lng, 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 394 of file class.ilPersonalDesktopGUI.php.

395 {
396 global $ilUser, $lng, $ilCtrl, $ilPluginAdmin;
397
398 include_once("Services/Block/classes/class.ilColumnGUI.php");
399 $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
400 $this->initColumn($column_gui);
401
402 if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
403 {
404 return "";
405 }
406
407 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
408 $column_gui->getCmdSide() == IL_COL_RIGHT &&
409 $column_gui->getScreenMode() == IL_SCREEN_SIDE)
410 {
411 $html = $ilCtrl->forwardCommand($column_gui);
412 }
413 else
414 {
415 if (!$ilCtrl->isAsynch())
416 {
417 $html = "";
418
419 // user interface plugin slot + default rendering
420 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
421 $uip = new ilUIHookProcessor("Services/PersonalDesktop", "right_column",
422 array("personal_desktop_gui" => $this));
423 if (!$uip->replaced())
424 {
425 $html = $ilCtrl->getHTML($column_gui);
426 }
427 $html = $uip->getHTML($html);
428 }
429 }
430
431 return $html;
432 }

References $html, $ilCtrl, $ilUser, $lng, 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 265 of file class.ilPersonalDesktopGUI.php.

266 {
267 $this->tpl->getStandardTemplate();
268 // add template for content
269// $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
270// $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
271 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getTreeModeTemplates()

ilPersonalDesktopGUI::getTreeModeTemplates ( )

get tree mode templates

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

277 {
278 // add template for content
279 $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
280 $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
281 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ ilPersonalDesktopGUI()

ilPersonalDesktopGUI::ilPersonalDesktopGUI ( )

constructor

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

41 {
42 global $ilias, $tpl, $lng, $rbacsystem, $ilCtrl, $ilMainMenu, $ilUser, $tree;
43
44
45 $this->tpl =& $tpl;
46 $this->lng =& $lng;
47 $this->ilias =& $ilias;
48 $this->ctrl =& $ilCtrl;
49
50 $ilCtrl->setContext($ilUser->getId(),
51 "user");
52
53 $ilMainMenu->setActive("desktop");
54 $this->lng->loadLanguageModule("pdesk");
55 $this->lng->loadLanguageModule("pd"); // #16813
56
57 // catch hack attempts
58 if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
59 {
60 $this->ilias->raiseError($this->lng->txt("msg_not_available_for_anon"),$this->ilias->error_obj->MESSAGE);
61 }
62 $this->cmdClass = $_GET['cmdClass'];
63
64 //$tree->useCache(false);
65
66 $this->action_menu = new ilAdvancedSelectionListGUI();
67 }
User interface class for advanced drop-down selection lists.
redirection script todo: (a better solution should control the processing via a xml file)

References $_GET, $_SESSION, $ilCtrl, $ilias, $ilUser, $lng, and $tpl.

◆ initColumn()

ilPersonalDesktopGUI::initColumn (   $a_column_gui)

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

769 {
770 $pd_set = new ilSetting("pd");
771 if ($pd_set->get("enable_block_moving"))
772 {
773 $a_column_gui->setEnableMovement(true);
774 }
775 $a_column_gui->setActionMenu($this->action_menu);
776 }
ILIAS Setting Class.

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

+ Here is the caller graph for this function:

◆ jumpToBookmarks()

ilPersonalDesktopGUI::jumpToBookmarks ( )

workaround for menu in calendar only

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

648 {
649 if ($this->ilias->getSetting("disable_bookmarks"))
650 {
651 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
652 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
653 return;
654 }
655
656 $this->ctrl->redirectByClass("ilbookmarkadministrationgui");
657 }

References ilUtil\redirect(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ jumpToCalendar()

ilPersonalDesktopGUI::jumpToCalendar ( )

Jump to calendar.

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

694 {
695 $this->ctrl->redirectByClass("ilcalendarpresentationgui");
696 }

◆ jumpToContacts()

ilPersonalDesktopGUI::jumpToContacts ( )

Jump to contacts.

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

702 {
703 $this->ctrl->redirectByClass(array('ilpersonaldesktopgui', 'ilcontactgui'));
704 }

◆ jumpToLP()

ilPersonalDesktopGUI::jumpToLP ( )

workaround for menu in calendar only

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

686 {
687 $this->ctrl->redirectByClass("illearningprogressgui");
688 }

◆ jumpToNews()

ilPersonalDesktopGUI::jumpToNews ( )

workaround for menu in calendar only

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

678 {
679 $this->ctrl->redirectByClass("ilpdnewsgui");
680 }

◆ jumpToNotes()

ilPersonalDesktopGUI::jumpToNotes ( )

workaround for menu in calendar only

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

663 {
664 if ($this->ilias->getSetting('disable_notes'))
665 {
666 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
667 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
668 return;
669 }
670
671 $this->ctrl->redirectByClass("ilpdnotesgui");
672 }

References ilUtil\redirect(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilPersonalDesktopGUI::jumpToPortfolio ( )

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

614 {
615 // incoming back link from shared resource
616 $cmd = "";
617 if($_REQUEST["dsh"])
618 {
619 $this->ctrl->setParameterByClass("ilportfoliorepositorygui", "shr_id", $_REQUEST["dsh"]);
620 $cmd = "showOther";
621 }
622
623 // used for goto links
624 if($_GET["prt_id"])
625 {
626 $this->ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", (int)$_GET["prt_id"]);
627 $this->ctrl->setParameterByClass("ilobjportfoliogui", "gtp", (int)$_GET["gtp"]);
628 $this->ctrl->redirectByClass(array("ilportfoliorepositorygui", "ilobjportfoliogui"), "preview");
629 }
630 else
631 {
632 $this->ctrl->redirectByClass("ilportfoliorepositorygui", $cmd);
633 }
634 }
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7

References $_GET, $_REQUEST, and $cmd.

◆ jumpToProfile()

ilPersonalDesktopGUI::jumpToProfile ( )

workaround for menu in calendar only

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

609 {
610 $this->ctrl->redirectByClass("ilpersonalprofilegui");
611 }

◆ jumpToSettings()

ilPersonalDesktopGUI::jumpToSettings ( )

workaround for menu in calendar only

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

640 {
641 $this->ctrl->redirectByClass("ilpersonalsettingsgui");
642 }

◆ jumpToSkills()

ilPersonalDesktopGUI::jumpToSkills ( )

Jump to personal skills.

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

736 {
737 $this->ctrl->redirectByClass("ilpersonalskillsgui");
738 }

◆ jumpToWorkspace()

ilPersonalDesktopGUI::jumpToWorkspace ( )

Jump to personal workspace.

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

710 {
711 // incoming back link from shared resource
712 $cmd = "";
713 if($_REQUEST["dsh"])
714 {
715 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "shr_id", $_REQUEST["dsh"]);
716 $cmd = "share";
717 }
718
719 if($_REQUEST["wsp_id"])
720 {
721 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "wsp_id", (int)$_REQUEST["wsp_id"]);
722 }
723
724 if($_REQUEST["gtp"])
725 {
726 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "gtp", (int)$_REQUEST["gtp"]);
727 }
728
729 $this->ctrl->redirectByClass("ilpersonalworkspacegui", $cmd);
730 }

References $_REQUEST, and $cmd.

◆ 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 525 of file class.ilPersonalDesktopGUI.php.

526 {
527 if ($array) {
528 $key_sorta = explode(";", $key_sort);
529
530 $multikeys = array_keys($array);
531 $keys = array_keys($array[$multikeys[0]]);
532
533 for($m=0; $m < count($key_sorta); $m++) {
534 $nkeys[$m] = trim($key_sorta[$m]);
535 }
536 $n += count($key_sorta);
537
538 for($i=0; $i < count($keys); $i++){
539 if(!in_array($keys[$i], $key_sorta)) {
540 $nkeys[$n] = $keys[$i];
541 $n += "1";
542 }
543 }
544
545 for($u=0;$u<count($array); $u++) {
546 $arr = $array[$multikeys[$u]];
547 for($s=0; $s<count($nkeys); $s++) {
548 $k = $nkeys[$s];
549 $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
550 }
551 }
552 sort($output);
553 return $output;
554 }
555 }
$n
Definition: RandomTest.php:80

References $n.

◆ prepareContentView()

ilPersonalDesktopGUI::prepareContentView ( )

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

478 {
479 // add template for content
480 $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
481 $this->tpl->getStandardTemplate();
482
483 // display infopanel if something happened
485
486 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd.svg"));
487 $this->tpl->setTitle($this->lng->txt("personal_desktop"));
488 $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
489 }
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:

◆ redirect()

ilPersonalDesktopGUI::redirect ( )

directly redirects a call

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

248 {
249 if(is_array($_GET))
250 {
251 foreach($_GET as $key => $val)
252 {
253 if(substr($key, 0, strlen('param_')) == 'param_')
254 {
255 $this->ctrl->setParameterByClass($_GET['redirectClass'], substr($key, strlen('param_')), $val);
256 }
257 }
258 }
259 ilUtil::redirect($this->ctrl->getLinkTargetByClass($_GET['redirectClass'], $_GET['redirectCmd'], '', true));
260 }

References $_GET, and ilUtil\redirect().

Referenced by executeCommand().

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

◆ removeMember()

ilPersonalDesktopGUI::removeMember ( )

copied from usr_personaldesktop.php

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

496 {
497 global $err_msg;
498 if (strlen($err_msg) > 0)
499 {
500 $this->ilias->raiseError($this->lng->txt($err_msg),$this->ilias->error_obj->MESSAGE);
501 }
502 $this->show();
503 }

References show().

+ Here is the call graph for this function:

◆ setTabs()

ilPersonalDesktopGUI::setTabs ( )

set personal desktop tabs

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

561 {
562 global $ilHelp;
563
564 $ilHelp->setScreenIdComponent("pd");
565 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

Field Documentation

◆ $action_menu

ilPersonalDesktopGUI::$action_menu
protected

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

◆ $cmdClass

ilPersonalDesktopGUI::$cmdClass = ''

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

◆ $ilias

ilPersonalDesktopGUI::$ilias

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

Referenced by ilPersonalDesktopGUI().

◆ $lng

ilPersonalDesktopGUI::$lng

◆ $tpl

ilPersonalDesktopGUI::$tpl

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

Referenced by ilPersonalDesktopGUI().


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