ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.
global $ilCtrl
Definition: ilias.php:18
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
$ilErr
Definition: raiseError.php:18
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 758 of file class.ilPersonalDesktopGUI.php.

759 {
760 $stored_classes = array('ilpersonaldesktopgui',
761 'ilpersonalprofilegui',
762 'ilpdnotesgui',
763 'ilcalendarpresentationgui',
764 'ilbookmarkadministrationgui',
765 'illearningprogressgui');
766
767 if (isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'], $stored_classes)) {
768 return $_SESSION['il_pd_history'];
769 } else {
770 $this->ctrl->getNextClass($this);
771 }
772 }
$_SESSION["AccountId"]

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ __storeLastClass()

ilPersonalDesktopGUI::__storeLastClass (   $a_class)

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

774 {
775 $_SESSION['il_pd_history'] = $a_class;
776 $this->cmdClass = $a_class;
777 }

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displayHeader()

ilPersonalDesktopGUI::displayHeader ( )

display header and locator

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

796 {
797 $this->tpl->setTitle($this->lng->txt("personal_desktop"));
798 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displaySystemMessages()

ilPersonalDesktopGUI::displaySystemMessages ( )

Display system messages.

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

510 {
511 include_once("Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
512 $sys_block = new ilPDSysMessageBlockGUI("ilpersonaldesktopgui", "show");
513 return $sys_block->getHTML();
514 }
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 "ilcolumngui":
222 $this->getStandardTemplates();
223 $this->setTabs();
224 include_once("./Services/Block/classes/class.ilColumnGUI.php");
225 $column_gui = new ilColumnGUI("pd");
226 $this->initColumn($column_gui);
227 $this->show();
228 break;
229
230 case 'ilcontactgui':
231 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
232 if (!ilBuddySystem::getInstance()->isEnabled()) {
233 $ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $ilErr->MESSAGE);
234 }
235
236 $this->getStandardTemplates();
237 $this->setTabs();
238 $this->tpl->setTitle($this->lng->txt('mail_addressbook'));
239
240 require_once 'Services/Contact/classes/class.ilContactGUI.php';
241 $this->ctrl->forwardCommand(new ilContactGUI());
242 break;
243
244 case 'ilpersonalworkspacegui':
245 // $this->getStandardTemplates();
246 // $this->setTabs();
247 include_once 'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
248 $wsgui = new ilPersonalWorkspaceGUI();
249 $ret = $this->ctrl->forwardCommand($wsgui);
250 $this->tpl->show();
251 break;
252
253 case 'ilportfoliorepositorygui':
254 $this->getStandardTemplates();
255 $this->setTabs();
256 include_once 'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
257 $pfgui = new ilPortfolioRepositoryGUI();
258 $ret = $this->ctrl->forwardCommand($pfgui);
259 $this->tpl->show();
260 break;
261
262 case 'ilachievementsgui':
263 $this->getStandardTemplates();
264 $this->setTabs();
265 $achievegui = new ilAchievementsGUI();
266 $ret = $this->ctrl->forwardCommand($achievegui);
267 break;
268
269 case strtolower(ilMyStaffGUI::class):
270 $this->getStandardTemplates();
271 $mstgui = new ilMyStaffGUI();
272 $ret = $this->ctrl->forwardCommand($mstgui);
273 break;
274 case 'ilgroupuseractionsgui':
275 $this->getStandardTemplates();
276 $this->setTabs();
277 include_once './Modules/Group/UserActions/classes/class.ilGroupUserActionsGUI.php';
278 $ggui = new ilGroupUserActionsGUI();
279 $ret = $this->ctrl->forwardCommand($ggui);
280 $this->tpl->show();
281 break;
282 case 'redirect':
283 $this->redirect();
284 break;
285
286 default:
287 $this->getStandardTemplates();
288 $this->setTabs();
289 $cmd = $this->ctrl->getCmd("show");
290 $this->$cmd();
291 break;
292 }
293 $ret = null;
294 return $ret;
295 }
show()
returns the content of IniFile @access public
GUI class for personal bookmark administration.
Column user interface class.
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.
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(), ilUtil\redirect(), ilUtil\sendFailure(), setTabs(), and show().

+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilPersonalDesktopGUI::getCenterColumnHTML ( )

Display center column.

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

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

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

410 {
414 $ilPluginAdmin = $this->plugin_admin;
415
416 include_once("Services/Block/classes/class.ilColumnGUI.php");
417 $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
418 $this->initColumn($column_gui);
419
420 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
421 return "";
422 }
423
424 if ($ilCtrl->getNextClass() == "ilcolumngui" &&
425 $column_gui->getCmdSide() == IL_COL_RIGHT &&
426 $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
427 $html = $ilCtrl->forwardCommand($column_gui);
428 } else {
429 if (!$ilCtrl->isAsynch()) {
430 $html = "";
431
432 // user interface plugin slot + default rendering
433 include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
434 $uip = new ilUIHookProcessor(
435 "Services/PersonalDesktop",
436 "right_column",
437 array("personal_desktop_gui" => $this)
438 );
439 if (!$uip->replaced()) {
440 $html = $ilCtrl->getHTML($column_gui);
441 }
442 $html = $uip->getHTML($html);
443 }
444 }
445
446 return $html;
447 }

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

301 {
302 $this->tpl->getStandardTemplate();
303 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ initColumn()

ilPersonalDesktopGUI::initColumn (   $a_column_gui)

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

784 {
785 $pd_set = new ilSetting("pd");
786 if ($pd_set->get("enable_block_moving")) {
787 $a_column_gui->setEnableMovement(true);
788 }
789 $a_column_gui->setActionMenu($this->action_menu);
790 }
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 745 of file class.ilPersonalDesktopGUI.php.

746 {
747 $this->ctrl->redirectByClass(["ilAchievementsGUI", "ilbadgeprofilegui"]);
748 }

◆ jumpToBookmarks()

ilPersonalDesktopGUI::jumpToBookmarks ( )

workaround for menu in calendar only

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

635 {
637
638 if ($ilSetting->get("disable_bookmarks")) {
639 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
640 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
641 return;
642 }
643
644 $this->ctrl->redirectByClass("ilbookmarkadministrationgui");
645 }

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

699 {
700 $this->ctrl->redirectByClass("ilcalendarpresentationgui");
701 }

◆ jumpToComments()

ilPersonalDesktopGUI::jumpToComments ( )

workaround for menu in calendar only

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

667 {
669
670 if ($ilSetting->get('disable_comments')) {
671 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
672 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
673 return;
674 }
675
676 $this->ctrl->redirectByClass("ilpdnotesgui", "showPublicComments");
677 }

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

707 {
708 $this->ctrl->redirectByClass(array('ilpersonaldesktopgui', 'ilcontactgui'));
709 }

◆ jumpToLP()

ilPersonalDesktopGUI::jumpToLP ( )

workaround for menu in calendar only

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

691 {
692 $this->ctrl->redirectByClass("illearningprogressgui");
693 }

◆ jumpToMemberships()

ilPersonalDesktopGUI::jumpToMemberships ( )

Jump to memberships.

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

572 {
573 require_once 'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php';
574 $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), (int) $_GET['view']);
575 if ($viewSettings->enabledMemberships()) {
576 $_GET['view'] = $viewSettings->getMembershipsView();
577 $this->ctrl->setParameter($this, "view", $viewSettings->getMembershipsView());
578 }
579 $this->show();
580 }

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

+ Here is the call graph for this function:

◆ jumpToMyStaff()

ilPersonalDesktopGUI::jumpToMyStaff ( )
protected

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

738 {
739 $this->ctrl->redirectByClass(ilMyStaffGUI::class);
740 }

◆ jumpToNews()

ilPersonalDesktopGUI::jumpToNews ( )

workaround for menu in calendar only

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

683 {
684 $this->ctrl->redirectByClass("ilpdnewsgui");
685 }

◆ jumpToNotes()

ilPersonalDesktopGUI::jumpToNotes ( )

workaround for menu in calendar only

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

651 {
653
654 if ($ilSetting->get('disable_notes')) {
655 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
656 ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
657 return;
658 }
659
660 $this->ctrl->redirectByClass("ilpdnotesgui");
661 }

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

+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilPersonalDesktopGUI::jumpToPortfolio ( )

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

605 {
606 // incoming back link from shared resource
607 $cmd = "";
608 if ($_REQUEST["dsh"]) {
609 $this->ctrl->setParameterByClass("ilportfoliorepositorygui", "shr_id", $_REQUEST["dsh"]);
610 $cmd = "showOther";
611 }
612
613 // used for goto links
614 if ($_GET["prt_id"]) {
615 $this->ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", (int) $_GET["prt_id"]);
616 $this->ctrl->setParameterByClass("ilobjportfoliogui", "gtp", (int) $_GET["gtp"]);
617 $this->ctrl->redirectByClass(array("ilportfoliorepositorygui", "ilobjportfoliogui"), "preview");
618 } else {
619 $this->ctrl->redirectByClass("ilportfoliorepositorygui", $cmd);
620 }
621 }

References $_GET.

◆ jumpToProfile()

ilPersonalDesktopGUI::jumpToProfile ( )

workaround for menu in calendar only

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

600 {
601 $this->ctrl->redirectByClass("ilpersonalprofilegui");
602 }

◆ jumpToSelectedItems()

ilPersonalDesktopGUI::jumpToSelectedItems ( )

Jump to selected items.

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

586 {
587 require_once 'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php';
588 $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), (int) $_GET['view']);
589 if ($viewSettings->enabledSelectedItems()) {
590 $_GET['view'] = $viewSettings->getSelectedItemsView();
591 $this->ctrl->setParameter($this, "view", $viewSettings->getSelectedItemsView());
592 }
593 $this->show();
594 }

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

627 {
628 $this->ctrl->redirectByClass("ilpersonalsettingsgui");
629 }

◆ jumpToSkills()

ilPersonalDesktopGUI::jumpToSkills ( )

Jump to personal skills.

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

754 {
755 $this->ctrl->redirectByClass("ilpersonalskillsgui");
756 }

◆ jumpToWorkspace()

ilPersonalDesktopGUI::jumpToWorkspace ( )

Jump to personal workspace.

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

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

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

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

References $i, $keys, $m, $n, Sabre\VObject\$output, and $s.

◆ prepareContentView()

ilPersonalDesktopGUI::prepareContentView ( )

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

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

562 {
563 $ilHelp = $this->help;
564
565 $ilHelp->setScreenIdComponent("pd");
566 }

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"

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

Referenced by ilUserUtil\getStartingPointAsUrl().


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