ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
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...
 
 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...
 
 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 748 of file class.ilPersonalDesktopGUI.php.

References $_SESSION.

Referenced by executeCommand().

749  {
750  $stored_classes = array('ilpersonaldesktopgui',
751  'ilpersonalprofilegui',
752  'ilpdnotesgui',
753  'ilcalendarpresentationgui',
754  'ilbookmarkadministrationgui',
755  'illearningprogressgui');
756 
757  if(isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'],$stored_classes))
758  {
759  return $_SESSION['il_pd_history'];
760  }
761  else
762  {
763  $this->ctrl->getNextClass($this);
764  }
765  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ __storeLastClass()

ilPersonalDesktopGUI::__storeLastClass (   $a_class)

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

References $_SESSION.

Referenced by executeCommand().

767  {
768  $_SESSION['il_pd_history'] = $a_class;
769  $this->cmdClass = $a_class;
770  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ displayHeader()

ilPersonalDesktopGUI::displayHeader ( )

display header and locator

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

Referenced by executeCommand().

790  {
791  //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
792  // $this->lng->txt("personal_desktop"));
793 // $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
794 // "");
795  $this->tpl->setTitle($this->lng->txt("personal_desktop"));
796  }
+ Here is the caller graph for this function:

◆ displaySystemMessages()

ilPersonalDesktopGUI::displaySystemMessages ( )

Display system messages.

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

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

◆ executeCommand()

& ilPersonalDesktopGUI::executeCommand ( )

execute command

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

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

72  {
73  global $ilSetting, $rbacsystem;
74 
75  $next_class = $this->ctrl->getNextClass();
76  $this->ctrl->setReturn($this, "show");
77 
78  $this->tpl->addCss(ilUtil::getStyleSheetLocation('filesystem','delos.css','Services/Calendar'));
79 
80  // read last active subsection
81  if (isset($_GET['PDHistory']) && $_GET['PDHistory'])
82  {
83  $next_class = $this->__loadNextClass();
84  }
85  $this->__storeLastClass($next_class);
86 
87 
88  // check for permission to view contacts
89  if (
90  $next_class == 'ilmailaddressbookgui' && ($this->ilias->getSetting("disable_contacts") ||
91  (
92  !$this->ilias->getSetting("disable_contacts_require_mail") &&
93  !$rbacsystem->checkAccess('internal_mail', ilMailGlobalServices::getMailObjectRefId())
94  ))
95  ) // if
96  {
97  $next_class = '';
98  ilUtil::sendFailure($this->lng->txt('no_permission'));
99  }
100 
101  switch($next_class)
102  {
103  case "ilbookmarkadministrationgui":
104  if ($ilSetting->get('disable_bookmarks'))
105  {
106  ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
107  ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
108  return;
109  }
110  include_once("./Services/Bookmarks/classes/class.ilBookmarkAdministrationGUI.php");
111  $bookmark_gui = new ilBookmarkAdministrationGUI();
112  if ($bookmark_gui->getMode() == 'tree') {
113  $this->getTreeModeTemplates();
114  } else {
115  $this->getStandardTemplates();
116  }
117  $this->setTabs();
118  $ret =& $this->ctrl->forwardCommand($bookmark_gui);
119  break;
120 
121  // profile
122  case "ilpersonalprofilegui":
123  $this->getStandardTemplates();
124  $this->setTabs();
125  include_once("./Services/User/classes/class.ilPersonalProfileGUI.php");
126  $profile_gui = new ilPersonalProfileGUI();
127  $ret =& $this->ctrl->forwardCommand($profile_gui);
128  break;
129 
130  // settings
131  case "ilpersonalsettingsgui":
132  $this->getStandardTemplates();
133  $this->setTabs();
134  include_once("./Services/User/classes/class.ilPersonalSettingsGUI.php");
135  $settings_gui = new ilPersonalSettingsGUI();
136  $ret =& $this->ctrl->forwardCommand($settings_gui);
137  break;
138 
139  // profile
140  case "ilobjusergui":
141  include_once('./Services/User/classes/class.ilObjUserGUI.php');
142  $user_gui = new ilObjUserGUI("",$_GET["user"], false, false);
143  $ret =& $this->ctrl->forwardCommand($user_gui);
144  break;
145 
146  case 'ilcalendarpresentationgui':
147  $this->getStandardTemplates();
148  $this->displayHeader();
149  $this->tpl->setTitle($this->lng->txt("calendar"));
150  $this->setTabs();
151  include_once('./Services/Calendar/classes/class.ilCalendarPresentationGUI.php');
152  $cal = new ilCalendarPresentationGUI();
153  $ret = $this->ctrl->forwardCommand($cal);
154  $this->tpl->show();
155  break;
156 
157  // pd notes
158  case "ilpdnotesgui":
159  if ($ilSetting->get('disable_notes'))
160  {
161  ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
162  ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
163  return;
164  }
165 
166  $this->getStandardTemplates();
167  $this->setTabs();
168  include_once("./Services/Notes/classes/class.ilPDNotesGUI.php");
169  $pd_notes_gui = new ilPDNotesGUI();
170  $ret =& $this->ctrl->forwardCommand($pd_notes_gui);
171  break;
172 
173  // pd news
174  case "ilpdnewsgui":
175  $this->getStandardTemplates();
176  $this->setTabs();
177  include_once("./Services/News/classes/class.ilPDNewsGUI.php");
178  $pd_news_gui = new ilPDNewsGUI();
179  $ret =& $this->ctrl->forwardCommand($pd_news_gui);
180  break;
181 
182  case "illearningprogressgui":
183  $this->getStandardTemplates();
184  $this->setTabs();
185  include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
187  $ret =& $this->ctrl->forwardCommand($new_gui);
188 
189  break;
190 
191  case "ilcolumngui":
192  $this->getStandardTemplates();
193  $this->setTabs();
194  include_once("./Services/Block/classes/class.ilColumnGUI.php");
195  $column_gui = new ilColumnGUI("pd");
196  $this->initColumn($column_gui);
197  $this->show();
198  break;
199 
200  // contacts
201  case 'ilmailaddressbookgui':
202  $this->getStandardTemplates();
203  $this->setTabs();
204  $this->tpl->setTitle($this->lng->txt("mail_addressbook"));
205 
206  include_once 'Services/Contact/classes/class.ilMailAddressbookGUI.php';
207  $mailgui = new ilMailAddressbookGUI();
208  $ret = $this->ctrl->forwardCommand($mailgui);
209  break;
210 
211  case 'ilpersonalworkspacegui':
212  $this->getStandardTemplates();
213  $this->setTabs();
214  include_once 'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
215  $wsgui = new ilPersonalWorkspaceGUI();
216  $ret = $this->ctrl->forwardCommand($wsgui);
217  $this->tpl->show();
218  break;
219 
220  case 'ilportfoliorepositorygui':
221  $this->getStandardTemplates();
222  $this->setTabs();
223  include_once 'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
224  $pfgui = new ilPortfolioRepositoryGUI();
225  $ret = $this->ctrl->forwardCommand($pfgui);
226  $this->tpl->show();
227  break;
228 
229  case 'ilpersonalskillsgui':
230  $this->setTabs();
231  include_once './Services/Skill/classes/class.ilPersonalSkillsGUI.php';
232  $skgui = new ilPersonalSkillsGUI();
233  $this->getStandardTemplates();
234  $ret = $this->ctrl->forwardCommand($skgui);
235  $this->tpl->show();
236  break;
237 
238  case 'redirect':
239  $this->redirect();
240  break;
241 
242  default:
243  $this->getStandardTemplates();
244  $this->setTabs();
245  $cmd = $this->ctrl->getCmd("show");
246  $this->$cmd();
247  break;
248  }
249  $ret = null;
250  return $ret;
251  }
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.
redirection script todo: (a better solution should control the processing via a xml file) ...
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:40
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable...
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.
getTreeModeTemplates()
get tree mode templates
GUI class for personal profile.
+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilPersonalDesktopGUI::getCenterColumnHTML ( )

Display center column.

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

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

Referenced by getTreeModeTemplates().

352  {
353  global $ilCtrl, $ilPluginAdmin;
354 
355  include_once("Services/Block/classes/class.ilColumnGUI.php");
356  $column_gui = new ilColumnGUI("pd", IL_COL_CENTER);
357  $this->initColumn($column_gui);
358 
359  if ($ilCtrl->getNextClass() == "ilcolumngui" &&
360  $column_gui->getCmdSide() == IL_COL_CENTER)
361  {
362  $html = $ilCtrl->forwardCommand($column_gui);
363  }
364  else
365  {
366  if (!$ilCtrl->isAsynch())
367  {
368  if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
369  {
370  // right column wants center
371  if ($column_gui->getCmdSide() == IL_COL_RIGHT)
372  {
373  $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
374  $this->initColumn($column_gui);
375  $html = $ilCtrl->forwardCommand($column_gui);
376  }
377  // left column wants center
378  if ($column_gui->getCmdSide() == IL_COL_LEFT)
379  {
380  $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
381  $this->initColumn($column_gui);
382  $html = $ilCtrl->forwardCommand($column_gui);
383  }
384  }
385  else
386  {
387  $html = "";
388 
389  // user interface plugin slot + default rendering
390  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
391  $uip = new ilUIHookProcessor("Services/PersonalDesktop", "center_column",
392  array("personal_desktop_gui" => $this));
393  if (!$uip->replaced())
394  {
395  $html = $ilCtrl->getHTML($column_gui);
396  }
397  $html = $uip->getHTML($html);
398 
399  }
400  }
401  }
402  return $html;
403  }
const IL_COL_CENTER
const IL_COL_RIGHT
UI interface hook processor.
global $ilCtrl
Definition: ilias.php:18
Column user interface class.
const IL_SCREEN_SIDE
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 451 of file class.ilPersonalDesktopGUI.php.

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

Referenced by getTreeModeTemplates().

452  {
453  global $ilUser, $lng, $ilCtrl, $ilPluginAdmin;
454 
455  include_once("Services/Block/classes/class.ilColumnGUI.php");
456  $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
457  $this->initColumn($column_gui);
458 
459  if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
460  {
461  return "";
462  }
463 
464  if ($ilCtrl->getNextClass() == "ilcolumngui" &&
465  $column_gui->getCmdSide() == IL_COL_LEFT &&
466  $column_gui->getScreenMode() == IL_SCREEN_SIDE)
467  {
468  $html = $ilCtrl->forwardCommand($column_gui);
469  }
470  else
471  {
472  if (!$ilCtrl->isAsynch())
473  {
474  $html = "";
475 
476  // user interface plugin slot + default rendering
477  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
478  $uip = new ilUIHookProcessor("Services/PersonalDesktop", "left_column",
479  array("personal_desktop_gui" => $this));
480  if (!$uip->replaced())
481  {
482  $html = $ilCtrl->getHTML($column_gui);
483  }
484  $html = $uip->getHTML($html);
485  }
486  }
487 
488  return $html;
489  }
UI interface hook processor.
global $ilCtrl
Definition: ilias.php:18
const IL_SCREEN_FULL
Column user interface class.
global $ilUser
Definition: imgupload.php:15
const IL_SCREEN_SIDE
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 408 of file class.ilPersonalDesktopGUI.php.

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

Referenced by getTreeModeTemplates().

409  {
410  global $ilUser, $lng, $ilCtrl, $ilPluginAdmin;
411 
412  include_once("Services/Block/classes/class.ilColumnGUI.php");
413  $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
414  $this->initColumn($column_gui);
415 
416  if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
417  {
418  return "";
419  }
420 
421  if ($ilCtrl->getNextClass() == "ilcolumngui" &&
422  $column_gui->getCmdSide() == IL_COL_RIGHT &&
423  $column_gui->getScreenMode() == IL_SCREEN_SIDE)
424  {
425  $html = $ilCtrl->forwardCommand($column_gui);
426  }
427  else
428  {
429  if (!$ilCtrl->isAsynch())
430  {
431  $html = "";
432 
433  // user interface plugin slot + default rendering
434  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
435  $uip = new ilUIHookProcessor("Services/PersonalDesktop", "right_column",
436  array("personal_desktop_gui" => $this));
437  if (!$uip->replaced())
438  {
439  $html = $ilCtrl->getHTML($column_gui);
440  }
441  $html = $uip->getHTML($html);
442  }
443  }
444 
445  return $html;
446  }
const IL_COL_RIGHT
UI interface hook processor.
global $ilCtrl
Definition: ilias.php:18
const IL_SCREEN_FULL
Column user interface class.
global $ilUser
Definition: imgupload.php:15
const IL_SCREEN_SIDE
+ 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 274 of file class.ilPersonalDesktopGUI.php.

Referenced by executeCommand().

275  {
276  $this->tpl->getStandardTemplate();
277  // add template for content
278 // $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
279 // $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
280  }
+ Here is the caller graph for this function:

◆ getTreeModeTemplates()

ilPersonalDesktopGUI::getTreeModeTemplates ( )

get tree mode templates

Definition at line 285 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().

286  {
287  // add template for content
288  $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
289  $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
290  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ilPersonalDesktopGUI()

ilPersonalDesktopGUI::ilPersonalDesktopGUI ( )

constructor

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

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

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 
56  // catch hack attempts
57  if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
58  {
59  $this->ilias->raiseError($this->lng->txt("msg_not_available_for_anon"),$this->ilias->error_obj->MESSAGE);
60  }
61  $this->cmdClass = $_GET['cmdClass'];
62 
63  //$tree->useCache(false);
64 
65  $this->action_menu = new ilAdvancedSelectionListGUI();
66  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...
User interface class for advanced drop-down selection lists.
global $ilUser
Definition: imgupload.php:15

◆ initColumn()

ilPersonalDesktopGUI::initColumn (   $a_column_gui)

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

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

777  {
778  $pd_set = new ilSetting("pd");
779  if ($pd_set->get("enable_block_moving"))
780  {
781  $a_column_gui->setEnableMovement(true);
782  }
783  $a_column_gui->setActionMenu($this->action_menu);
784  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ jumpToBookmarks()

ilPersonalDesktopGUI::jumpToBookmarks ( )

workaround for menu in calendar only

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

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

656  {
657  if ($this->ilias->getSetting("disable_bookmarks"))
658  {
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  }
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 701 of file class.ilPersonalDesktopGUI.php.

702  {
703  $this->ctrl->redirectByClass("ilcalendarpresentationgui");
704  }

◆ jumpToContacts()

ilPersonalDesktopGUI::jumpToContacts ( )

Jump to contacts.

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

710  {
711  $this->ctrl->redirectByClass("ilmailaddressbookgui");
712  }

◆ jumpToLP()

ilPersonalDesktopGUI::jumpToLP ( )

workaround for menu in calendar only

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

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

◆ jumpToMemberships()

ilPersonalDesktopGUI::jumpToMemberships ( )

Jump to memberships.

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

References $ilSetting, and $ilUser.

588  {
589  global $ilSetting, $ilUser;
590 
591  if ($ilSetting->get('disable_my_memberships') == 0)
592  {
593  $ilUser->writePref('pd_view', 1);
594  }
595  $this->show();
596  }
global $ilUser
Definition: imgupload.php:15
global $ilSetting
Definition: privfeed.php:40

◆ jumpToNews()

ilPersonalDesktopGUI::jumpToNews ( )

workaround for menu in calendar only

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

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

◆ jumpToNotes()

ilPersonalDesktopGUI::jumpToNotes ( )

workaround for menu in calendar only

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

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

671  {
672  if ($this->ilias->getSetting('disable_notes'))
673  {
674  ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
675  ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
676  return;
677  }
678 
679  $this->ctrl->redirectByClass("ilpdnotesgui");
680  }
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 621 of file class.ilPersonalDesktopGUI.php.

References $_GET, $_REQUEST, and $cmd.

622  {
623  // incoming back link from shared resource
624  $cmd = "";
625  if($_REQUEST["dsh"])
626  {
627  $this->ctrl->setParameterByClass("ilportfoliorepositorygui", "shr_id", $_REQUEST["dsh"]);
628  $cmd = "showOther";
629  }
630 
631  // used for goto links
632  if($_GET["prt_id"])
633  {
634  $this->ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", (int)$_GET["prt_id"]);
635  $this->ctrl->setParameterByClass("ilobjportfoliogui", "gtp", (int)$_GET["gtp"]);
636  $this->ctrl->redirectByClass(array("ilportfoliorepositorygui", "ilobjportfoliogui"), "preview");
637  }
638  else
639  {
640  $this->ctrl->redirectByClass("ilportfoliorepositorygui", $cmd);
641  }
642  }
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7

◆ jumpToProfile()

ilPersonalDesktopGUI::jumpToProfile ( )

workaround for menu in calendar only

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

617  {
618  $this->ctrl->redirectByClass("ilpersonalprofilegui");
619  }

◆ jumpToSelectedItems()

ilPersonalDesktopGUI::jumpToSelectedItems ( )

Jump to selected items.

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

References $ilSetting, and $ilUser.

602  {
603  global $ilSetting, $ilUser;
604 
605  if ($ilSetting->get('disable_my_offers') == 0)
606  {
607  $ilUser->writePref('pd_view', 0);
608  }
609  $this->show();
610  }
global $ilUser
Definition: imgupload.php:15
global $ilSetting
Definition: privfeed.php:40

◆ jumpToSettings()

ilPersonalDesktopGUI::jumpToSettings ( )

workaround for menu in calendar only

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

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

◆ jumpToSkills()

ilPersonalDesktopGUI::jumpToSkills ( )

Jump to personal skills.

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

744  {
745  $this->ctrl->redirectByClass("ilpersonalskillsgui");
746  }

◆ jumpToWorkspace()

ilPersonalDesktopGUI::jumpToWorkspace ( )

Jump to personal workspace.

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

References $_REQUEST, and $cmd.

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

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

References $n.

543  {
544  if ($array) {
545  $key_sorta = explode(";", $key_sort);
546 
547  $multikeys = array_keys($array);
548  $keys = array_keys($array[$multikeys[0]]);
549 
550  for($m=0; $m < count($key_sorta); $m++) {
551  $nkeys[$m] = trim($key_sorta[$m]);
552  }
553  $n += count($key_sorta);
554 
555  for($i=0; $i < count($keys); $i++){
556  if(!in_array($keys[$i], $key_sorta)) {
557  $nkeys[$n] = $keys[$i];
558  $n += "1";
559  }
560  }
561 
562  for($u=0;$u<count($array); $u++) {
563  $arr = $array[$multikeys[$u]];
564  for($s=0; $s<count($nkeys); $s++) {
565  $k = $nkeys[$s];
566  $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
567  }
568  }
569  sort($output);
570  return $output;
571  }
572  }
$n
Definition: RandomTest.php:80

◆ prepareContentView()

ilPersonalDesktopGUI::prepareContentView ( )

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

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

492  {
493  // add template for content
494  $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
495  $this->tpl->getStandardTemplate();
496 
497  // display infopanel if something happened
499 
500  //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
501  // $this->lng->txt("personal_desktop"));
502  $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
503  "");
504  $this->tpl->setTitle($this->lng->txt("personal_desktop"));
505  $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
506  }
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 256 of file class.ilPersonalDesktopGUI.php.

References $_GET, and ilUtil\redirect().

Referenced by executeCommand().

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

513  {
514  global $err_msg;
515  if (strlen($err_msg) > 0)
516  {
517  $this->ilias->raiseError($this->lng->txt($err_msg),$this->ilias->error_obj->MESSAGE);
518  }
519  $this->show();
520  }
redirection script todo: (a better solution should control the processing via a xml file) ...

◆ setTabs()

ilPersonalDesktopGUI::setTabs ( )

set personal desktop tabs

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

Referenced by executeCommand().

578  {
579  global $ilHelp;
580 
581  $ilHelp->setScreenIdComponent("pd");
582  }
+ 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 getTreeModeTemplates(), and ilPersonalDesktopGUI().


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