ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilPersonalDesktopGUI Class Reference

GUI class for personal desktop. More...

+ Collaboration diagram for ilPersonalDesktopGUI:

Public Member Functions

 __construct ()
 constructor More...
 
 executeCommand ()
 execute command More...
 
 redirect ()
 directly redirects a call More...
 
 getStandardTemplates ()
 get standard 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...
 
 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

 $tpl
 
 $lng
 
 $ilias
 
 $cmdClass = ''
 

Protected Attributes

 $action_menu
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPersonalDesktopGUI::__construct ( )

constructor

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

References $_GET, $GLOBALS, $ilCtrl, $ilias, $ilUser, $lng, $tpl, and array.

42  {
43  global $ilias, $tpl, $lng, $rbacsystem, $ilCtrl, $ilMainMenu, $ilUser, $tree;
44 
45 
46  $this->tpl = $tpl;
47  $this->lng = $lng;
48  $this->ilias = $ilias;
49  $this->ctrl = $ilCtrl;
50 
51  $ilCtrl->setContext($ilUser->getId(),
52  "user");
53 
54  $ilMainMenu->setActive("desktop");
55  $this->lng->loadLanguageModule("pdesk");
56  $this->lng->loadLanguageModule("pd"); // #16813
57 
58  // catch hack attempts
59  if ($GLOBALS['DIC']['ilUser']->getId() == ANONYMOUS_USER_ID)
60  {
61  $this->ilias->raiseError($this->lng->txt("msg_not_available_for_anon"),$this->ilias->error_obj->MESSAGE);
62  }
63  $this->cmdClass = $_GET['cmdClass'];
64 
65  $this->ctrl->saveParameter($this, array("view"));
66 
67  //$tree->useCache(false);
68 
69  $this->action_menu = new ilAdvancedSelectionListGUI();
70  }
$_GET["client_id"]
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.

Member Function Documentation

◆ __loadNextClass()

ilPersonalDesktopGUI::__loadNextClass ( )

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

References $_SESSION, and array.

Referenced by executeCommand().

761  {
762  $stored_classes = array('ilpersonaldesktopgui',
763  'ilpersonalprofilegui',
764  'ilpdnotesgui',
765  'ilcalendarpresentationgui',
766  'ilbookmarkadministrationgui',
767  'illearningprogressgui');
768 
769  if(isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'],$stored_classes))
770  {
771  return $_SESSION['il_pd_history'];
772  }
773  else
774  {
775  $this->ctrl->getNextClass($this);
776  }
777  }
$_SESSION["AccountId"]
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ __storeLastClass()

ilPersonalDesktopGUI::__storeLastClass (   $a_class)

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

References $_SESSION.

Referenced by executeCommand().

779  {
780  $_SESSION['il_pd_history'] = $a_class;
781  $this->cmdClass = $a_class;
782  }
$_SESSION["AccountId"]
+ Here is the caller graph for this function:

◆ displayHeader()

ilPersonalDesktopGUI::displayHeader ( )

display header and locator

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

Referenced by executeCommand().

802  {
803  $this->tpl->setTitle($this->lng->txt("personal_desktop"));
804  }
+ Here is the caller graph for this function:

◆ displaySystemMessages()

ilPersonalDesktopGUI::displaySystemMessages ( )

Display system messages.

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

504  {
505  include_once("Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
506  $sys_block = new ilPDSysMessageBlockGUI("ilpersonaldesktopgui", "show");
507  return $sys_block->getHTML();
508  }
BlockGUI class for System Messages block on personal desktop.

◆ executeCommand()

ilPersonalDesktopGUI::executeCommand ( )

execute command

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

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

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

◆ getCenterColumnHTML()

ilPersonalDesktopGUI::getCenterColumnHTML ( )

Display center column.

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

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

Referenced by getStandardTemplates().

333  {
334  global $ilCtrl, $ilPluginAdmin;
335 
336  include_once("Services/Block/classes/class.ilColumnGUI.php");
337  $column_gui = new ilColumnGUI("pd", IL_COL_CENTER);
338  $this->initColumn($column_gui);
339 
340  if ($ilCtrl->getNextClass() == "ilcolumngui" &&
341  $column_gui->getCmdSide() == IL_COL_CENTER)
342  {
343  $html = $ilCtrl->forwardCommand($column_gui);
344  }
345  else
346  {
347  if (!$ilCtrl->isAsynch())
348  {
349  if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
350  {
351  // right column wants center
352  if ($column_gui->getCmdSide() == IL_COL_RIGHT)
353  {
354  $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
355  $this->initColumn($column_gui);
356  $html = $ilCtrl->forwardCommand($column_gui);
357  }
358  // left column wants center
359  if ($column_gui->getCmdSide() == IL_COL_LEFT)
360  {
361  $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
362  $this->initColumn($column_gui);
363  $html = $ilCtrl->forwardCommand($column_gui);
364  }
365  }
366  else
367  {
368  $html = "";
369 
370  // user interface plugin slot + default rendering
371  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
372  $uip = new ilUIHookProcessor("Services/PersonalDesktop", "center_column",
373  array("personal_desktop_gui" => $this));
374  if (!$uip->replaced())
375  {
376  $html = $ilCtrl->getHTML($column_gui);
377  }
378  $html = $uip->getHTML($html);
379 
380  }
381  }
382  }
383  return $html;
384  }
const IL_COL_CENTER
const IL_COL_RIGHT
UI interface hook processor.
global $ilCtrl
Definition: ilias.php:18
Column user interface class.
Create styles array
The data for the language used.
const IL_SCREEN_SIDE
$html
Definition: example_001.php:87
const IL_COL_LEFT
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLeftColumnHTML()

ilPersonalDesktopGUI::getLeftColumnHTML ( )

Display left column.

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

References $html, $ilCtrl, $ilUser, $lng, array, IL_COL_LEFT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and initColumn().

Referenced by getStandardTemplates().

433  {
434  global $ilUser, $lng, $ilCtrl, $ilPluginAdmin;
435 
436  include_once("Services/Block/classes/class.ilColumnGUI.php");
437  $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
438  $this->initColumn($column_gui);
439 
440  if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
441  {
442  return "";
443  }
444 
445  if ($ilCtrl->getNextClass() == "ilcolumngui" &&
446  $column_gui->getCmdSide() == IL_COL_LEFT &&
447  $column_gui->getScreenMode() == IL_SCREEN_SIDE)
448  {
449  $html = $ilCtrl->forwardCommand($column_gui);
450  }
451  else
452  {
453  if (!$ilCtrl->isAsynch())
454  {
455  $html = "";
456 
457  // user interface plugin slot + default rendering
458  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
459  $uip = new ilUIHookProcessor("Services/PersonalDesktop", "left_column",
460  array("personal_desktop_gui" => $this));
461  if (!$uip->replaced())
462  {
463  $html = $ilCtrl->getHTML($column_gui);
464  }
465  $html = $uip->getHTML($html);
466  }
467  }
468 
469  return $html;
470  }
UI interface hook processor.
global $ilCtrl
Definition: ilias.php:18
const IL_SCREEN_FULL
Column user interface class.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
const IL_SCREEN_SIDE
$html
Definition: example_001.php:87
const IL_COL_LEFT
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRightColumnHTML()

ilPersonalDesktopGUI::getRightColumnHTML ( )

Display right column.

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

References $html, $ilCtrl, $ilUser, $lng, array, IL_COL_RIGHT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and initColumn().

Referenced by getStandardTemplates().

390  {
391  global $ilUser, $lng, $ilCtrl, $ilPluginAdmin;
392 
393  include_once("Services/Block/classes/class.ilColumnGUI.php");
394  $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
395  $this->initColumn($column_gui);
396 
397  if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
398  {
399  return "";
400  }
401 
402  if ($ilCtrl->getNextClass() == "ilcolumngui" &&
403  $column_gui->getCmdSide() == IL_COL_RIGHT &&
404  $column_gui->getScreenMode() == IL_SCREEN_SIDE)
405  {
406  $html = $ilCtrl->forwardCommand($column_gui);
407  }
408  else
409  {
410  if (!$ilCtrl->isAsynch())
411  {
412  $html = "";
413 
414  // user interface plugin slot + default rendering
415  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
416  $uip = new ilUIHookProcessor("Services/PersonalDesktop", "right_column",
417  array("personal_desktop_gui" => $this));
418  if (!$uip->replaced())
419  {
420  $html = $ilCtrl->getHTML($column_gui);
421  }
422  $html = $uip->getHTML($html);
423  }
424  }
425 
426  return $html;
427  }
const IL_COL_RIGHT
UI interface hook processor.
global $ilCtrl
Definition: ilias.php:18
const IL_SCREEN_FULL
Column user interface class.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
const IL_SCREEN_SIDE
$html
Definition: example_001.php:87
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStandardTemplates()

ilPersonalDesktopGUI::getStandardTemplates ( )

get standard templates

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

References $lng, $tpl, ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, getCenterColumnHTML(), ilUtil\getImagePath(), getLeftColumnHTML(), getRightColumnHTML(), ilUtil\infoPanel(), and ilBlockSetting\preloadPDBlockSettings().

Referenced by executeCommand().

274  {
275  $this->tpl->getStandardTemplate();
276  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initColumn()

ilPersonalDesktopGUI::initColumn (   $a_column_gui)

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

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

789  {
790  $pd_set = new ilSetting("pd");
791  if ($pd_set->get("enable_block_moving"))
792  {
793  $a_column_gui->setEnableMovement(true);
794  }
795  $a_column_gui->setActionMenu($this->action_menu);
796  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ jumpToBadges()

ilPersonalDesktopGUI::jumpToBadges ( )

Jump to badges.

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

748  {
749  $this->ctrl->redirectByClass("ilbadgeprofilegui");
750  }

◆ jumpToBookmarks()

ilPersonalDesktopGUI::jumpToBookmarks ( )

workaround for menu in calendar only

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

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

645  {
646  if ($this->ilias->getSetting("disable_bookmarks"))
647  {
648  ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
649  ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
650  return;
651  }
652 
653  $this->ctrl->redirectByClass("ilbookmarkadministrationgui");
654  }
redirection script todo: (a better solution should control the processing via a xml file) ...
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static redirect($a_script)
http redirect to other script
+ Here is the call graph for this function:

◆ jumpToCalendar()

ilPersonalDesktopGUI::jumpToCalendar ( )

Jump to calendar.

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

706  {
707  $this->ctrl->redirectByClass("ilcalendarpresentationgui");
708  }

◆ jumpToComments()

ilPersonalDesktopGUI::jumpToComments ( )

workaround for menu in calendar only

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

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

675  {
676  if ($this->ilias->getSetting('disable_comments'))
677  {
678  ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
679  ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
680  return;
681  }
682 
683  $this->ctrl->redirectByClass("ilpdnotesgui", "showPublicComments");
684  }
redirection script todo: (a better solution should control the processing via a xml file) ...
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static redirect($a_script)
http redirect to other script
+ Here is the call graph for this function:

◆ jumpToContacts()

ilPersonalDesktopGUI::jumpToContacts ( )

Jump to contacts.

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

References array.

714  {
715  $this->ctrl->redirectByClass(array('ilpersonaldesktopgui', 'ilcontactgui'));
716  }
Create styles array
The data for the language used.

◆ jumpToLP()

ilPersonalDesktopGUI::jumpToLP ( )

workaround for menu in calendar only

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

698  {
699  $this->ctrl->redirectByClass("illearningprogressgui");
700  }

◆ jumpToNews()

ilPersonalDesktopGUI::jumpToNews ( )

workaround for menu in calendar only

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

690  {
691  $this->ctrl->redirectByClass("ilpdnewsgui");
692  }

◆ jumpToNotes()

ilPersonalDesktopGUI::jumpToNotes ( )

workaround for menu in calendar only

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

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

660  {
661  if ($this->ilias->getSetting('disable_notes'))
662  {
663  ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
664  ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
665  return;
666  }
667 
668  $this->ctrl->redirectByClass("ilpdnotesgui");
669  }
redirection script todo: (a better solution should control the processing via a xml file) ...
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static redirect($a_script)
http redirect to other script
+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilPersonalDesktopGUI::jumpToPortfolio ( )

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

References $_GET, $cmd, and array.

611  {
612  // incoming back link from shared resource
613  $cmd = "";
614  if($_REQUEST["dsh"])
615  {
616  $this->ctrl->setParameterByClass("ilportfoliorepositorygui", "shr_id", $_REQUEST["dsh"]);
617  $cmd = "showOther";
618  }
619 
620  // used for goto links
621  if($_GET["prt_id"])
622  {
623  $this->ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", (int)$_GET["prt_id"]);
624  $this->ctrl->setParameterByClass("ilobjportfoliogui", "gtp", (int)$_GET["gtp"]);
625  $this->ctrl->redirectByClass(array("ilportfoliorepositorygui", "ilobjportfoliogui"), "preview");
626  }
627  else
628  {
629  $this->ctrl->redirectByClass("ilportfoliorepositorygui", $cmd);
630  }
631  }
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
Create styles array
The data for the language used.

◆ jumpToProfile()

ilPersonalDesktopGUI::jumpToProfile ( )

workaround for menu in calendar only

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

606  {
607  $this->ctrl->redirectByClass("ilpersonalprofilegui");
608  }

◆ jumpToSettings()

ilPersonalDesktopGUI::jumpToSettings ( )

workaround for menu in calendar only

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

637  {
638  $this->ctrl->redirectByClass("ilpersonalsettingsgui");
639  }

◆ jumpToSkills()

ilPersonalDesktopGUI::jumpToSkills ( )

Jump to personal skills.

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

756  {
757  $this->ctrl->redirectByClass("ilpersonalskillsgui");
758  }

◆ jumpToWorkspace()

ilPersonalDesktopGUI::jumpToWorkspace ( )

Jump to personal workspace.

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

References $cmd.

722  {
723  // incoming back link from shared resource
724  $cmd = "";
725  if($_REQUEST["dsh"])
726  {
727  $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "shr_id", $_REQUEST["dsh"]);
728  $cmd = "share";
729  }
730 
731  if($_REQUEST["wsp_id"])
732  {
733  $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "wsp_id", (int)$_REQUEST["wsp_id"]);
734  }
735 
736  if($_REQUEST["gtp"])
737  {
738  $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "gtp", (int)$_REQUEST["gtp"]);
739  }
740 
741  $this->ctrl->redirectByClass("ilpersonalworkspacegui", $cmd);
742  }
$cmd
Definition: sahs_server.php:35

◆ 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 public

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

References $n, and $output.

521  {
522  if ($array) {
523  $key_sorta = explode(";", $key_sort);
524 
525  $multikeys = array_keys($array);
526  $keys = array_keys($array[$multikeys[0]]);
527 
528  for($m=0; $m < count($key_sorta); $m++) {
529  $nkeys[$m] = trim($key_sorta[$m]);
530  }
531  $n += count($key_sorta);
532 
533  for($i=0; $i < count($keys); $i++){
534  if(!in_array($keys[$i], $key_sorta)) {
535  $nkeys[$n] = $keys[$i];
536  $n += "1";
537  }
538  }
539 
540  for($u=0;$u<count($array); $u++) {
541  $arr = $array[$multikeys[$u]];
542  for($s=0; $s<count($nkeys); $s++) {
543  $k = $nkeys[$s];
544  $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
545  }
546  }
547  sort($output);
548  return $output;
549  }
550  }
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
$n
Definition: RandomTest.php:80

◆ prepareContentView()

ilPersonalDesktopGUI::prepareContentView ( )

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

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

473  {
474  // add template for content
475  $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
476  $this->tpl->getStandardTemplate();
477 
478  // display infopanel if something happened
480 
481  $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd.svg"));
482  $this->tpl->setTitle($this->lng->txt("personal_desktop"));
483  $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
484  }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR
static infoPanel($a_keep=true)
+ Here is the call graph for this function:

◆ redirect()

ilPersonalDesktopGUI::redirect ( )

directly redirects a call

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

References $_GET, and ilUtil\redirect().

Referenced by executeCommand().

256  {
257  if(is_array($_GET))
258  {
259  foreach($_GET as $key => $val)
260  {
261  if(substr($key, 0, strlen('param_')) == 'param_')
262  {
263  $this->ctrl->setParameterByClass($_GET['redirectClass'], substr($key, strlen('param_')), $val);
264  }
265  }
266  }
267  ilUtil::redirect($this->ctrl->getLinkTargetByClass($_GET['redirectClass'], $_GET['redirectCmd'], '', true));
268  }
$_GET["client_id"]
static redirect($a_script)
http redirect to other script
+ 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 490 of file class.ilPersonalDesktopGUI.php.

491  {
492  global $err_msg;
493  if (strlen($err_msg) > 0)
494  {
495  $this->ilias->raiseError($this->lng->txt($err_msg),$this->ilias->error_obj->MESSAGE);
496  }
497  $this->show();
498  }
redirection script todo: (a better solution should control the processing via a xml file) ...

◆ setTabs()

ilPersonalDesktopGUI::setTabs ( )

set personal desktop tabs

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

References $_GET, $ilSetting, ilPDSelectedItemsBlockGUI\VIEW_MY_MEMBERSHIPS, and ilPDSelectedItemsBlockGUI\VIEW_SELECTED_ITEMS.

Referenced by executeCommand().

556  {
557  global $ilHelp;
558 
559  $ilHelp->setScreenIdComponent("pd");
560  }
+ Here is the caller graph for this function:

Field Documentation

◆ $action_menu

ilPersonalDesktopGUI::$action_menu
protected

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

◆ $cmdClass

ilPersonalDesktopGUI::$cmdClass = ''

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

◆ $ilias

ilPersonalDesktopGUI::$ilias

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

Referenced by __construct().

◆ $lng

ilPersonalDesktopGUI::$lng

◆ $tpl

ilPersonalDesktopGUI::$tpl

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

Referenced by __construct(), and getStandardTemplates().


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