ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilDashboardGUI Class Reference

Dashboard UI. More...

+ Collaboration diagram for ilDashboardGUI:

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 ()
 
 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...
 
 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...
 
 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"
 
const DISENGAGE_MAINBAR = "dash_mb_disengage"
 
 $tpl
 
 $lng
 
 $cmdClass = ''
 

Protected Member Functions

 jumpToMyStaff ()
 
 toggleHelp ()
 Temporary workaround for toggling the help. More...
 
 getMainContent ()
 Get main content. More...
 
 renderFavourites ()
 Render favourites. More...
 
 renderRecommendedContent ()
 Render recommended content. More...
 
 renderStudyProgrammes ()
 Render study programmes. More...
 
 renderMemberships ()
 Render memberships. More...
 
 renderLearningSequences ()
 Render learning sequences. More...
 

Protected Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDashboardGUI::__construct ( )

constructor

Definition at line 85 of file class.ilDashboardGUI.php.

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ __loadNextClass()

ilDashboardGUI::__loadNextClass ( )

Definition at line 741 of file class.ilDashboardGUI.php.

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

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ __storeLastClass()

ilDashboardGUI::__storeLastClass (   $a_class)

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

756 {
757 $_SESSION['il_pd_history'] = $a_class;
758 $this->cmdClass = $a_class;
759 }

References $_SESSION.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ displayHeader()

ilDashboardGUI::displayHeader ( )

display header and locator

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

774 {
775 $this->tpl->setTitle($this->lng->txt("dash_dashboard"));
776 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ executeCommand()

ilDashboardGUI::executeCommand ( )

execute command

Definition at line 134 of file class.ilDashboardGUI.php.

135 {
136 global $DIC;
137
138 $context = $DIC->globalScreen()->tool()->context();
139 $context->stack()->desktop();
140
144
145 $next_class = $this->ctrl->getNextClass();
146 $this->ctrl->setReturn($this, "show");
147
148 // read last active subsection
149 if (isset($_GET['PDHistory']) && $_GET['PDHistory']) {
150 $next_class = $this->__loadNextClass();
151 }
152 $this->__storeLastClass($next_class);
153
154 switch ($next_class) {
155
156 // profile
157 case "ilpersonalprofilegui":
158 $this->getStandardTemplates();
159 $this->setTabs();
160 $profile_gui = new ilPersonalProfileGUI();
161 $ret = $this->ctrl->forwardCommand($profile_gui);
162 break;
163
164 // settings
165 case "ilpersonalsettingsgui":
166 $this->getStandardTemplates();
167 $this->setTabs();
168 $settings_gui = new ilPersonalSettingsGUI();
169 $ret = $this->ctrl->forwardCommand($settings_gui);
170 break;
171
172 // profile
173 case "ilobjusergui":
174 include_once('./Services/User/classes/class.ilObjUserGUI.php');
175 $user_gui = new ilObjUserGUI("", $_GET["user"], false, false);
176 $ret = $this->ctrl->forwardCommand($user_gui);
177 break;
178
179 case 'ilcalendarpresentationgui':
180 $this->getStandardTemplates();
181 $this->displayHeader();
182 $this->tpl->setTitle($this->lng->txt("calendar"));
183 $this->setTabs();
184 include_once('./Services/Calendar/classes/class.ilCalendarPresentationGUI.php');
185 $cal = new ilCalendarPresentationGUI();
186 $ret = $this->ctrl->forwardCommand($cal);
187 $this->tpl->printToStdout();
188 break;
189
190 // pd notes
191 case "ilpdnotesgui":
192 if ($ilSetting->get('disable_notes') && $ilSetting->get('disable_comments')) {
193 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
194 ilUtil::redirect('ilias.php?baseClass=ilDashboardGUI');
195 return;
196 }
197
198 $this->getStandardTemplates();
199 $this->setTabs();
200 include_once("./Services/Notes/classes/class.ilPDNotesGUI.php");
201 $pd_notes_gui = new ilPDNotesGUI();
202 $ret = $this->ctrl->forwardCommand($pd_notes_gui);
203 break;
204
205 // pd news
206 case "ilpdnewsgui":
207 $this->getStandardTemplates();
208 $this->setTabs();
209 include_once("./Services/News/classes/class.ilPDNewsGUI.php");
210 $pd_news_gui = new ilPDNewsGUI();
211 $ret = $this->ctrl->forwardCommand($pd_news_gui);
212 break;
213
214 case "ilcolumngui":
215 $this->getStandardTemplates();
216 $this->setTabs();
217 include_once("./Services/Block/classes/class.ilColumnGUI.php");
218 $column_gui = new ilColumnGUI("pd");
219 $this->initColumn($column_gui);
220 $this->show();
221 break;
222
223 case "ilpdselecteditemsblockgui":
224 $block = new ilPDSelectedItemsBlockGUI();
225 $this->displayHeader();
226 $ret = $this->ctrl->forwardCommand($block);
227 if ($ret != "") {
228 $this->tpl->setContent($ret);
229 $this->tpl->printToStdout();
230 }
231 break;
232
233 case "ilpdmembershipblockgui":
234 $block = new ilPDMembershipBlockGUI();
235 $ret = $this->ctrl->forwardCommand($block);
236 if ($ret != "") {
237 $this->displayHeader();
238 $this->tpl->setContent($ret);
239 $this->tpl->printToStdout();
240 }
241 break;
242
243 case 'ilcontactgui':
244 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
245 if (!ilBuddySystem::getInstance()->isEnabled()) {
246 $ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $ilErr->MESSAGE);
247 }
248
249 $this->getStandardTemplates();
250 $this->setTabs();
251 $this->tpl->setTitle($this->lng->txt('mail_addressbook'));
252
253 require_once 'Services/Contact/classes/class.ilContactGUI.php';
254 $this->ctrl->forwardCommand(new ilContactGUI());
255 break;
256
257 case 'ilpersonalworkspacegui':
258 // $this->getStandardTemplates();
259 // $this->setTabs();
260 include_once 'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
261 $wsgui = new ilPersonalWorkspaceGUI();
262 $ret = $this->ctrl->forwardCommand($wsgui);
263 $this->tpl->printToStdout();
264 break;
265
266 case 'ilportfoliorepositorygui':
267 $this->getStandardTemplates();
268 $this->setTabs();
269 include_once 'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
270 $pfgui = new ilPortfolioRepositoryGUI();
271 $ret = $this->ctrl->forwardCommand($pfgui);
272 $this->tpl->printToStdout();
273 break;
274
275 case 'ilachievementsgui':
276 $this->getStandardTemplates();
277 $this->setTabs();
278 $achievegui = new ilAchievementsGUI();
279 $ret = $this->ctrl->forwardCommand($achievegui);
280 break;
281
282 case strtolower(ilMyStaffGUI::class):
283 $this->getStandardTemplates();
284 $mstgui = new ilMyStaffGUI();
285 $ret = $this->ctrl->forwardCommand($mstgui);
286 break;
287 case 'ilgroupuseractionsgui':
288 $this->getStandardTemplates();
289 $this->setTabs();
290 include_once './Modules/Group/UserActions/classes/class.ilGroupUserActionsGUI.php';
291 $ggui = new ilGroupUserActionsGUI();
292 $ret = $this->ctrl->forwardCommand($ggui);
293 $this->tpl->printToStdout();
294 break;
295 case 'redirect':
296 $this->redirect();
297 break;
298
299 case "ildashboardrecommendedcontentgui":
301 $this->ctrl->forwardCommand($gui);
302 break;
303 case "ilstudyprogrammedashboardviewgui":
305 $this->ctrl->forwardCommand($gui);
306 break;
307 default:
308 $context->current()->addAdditionalData(self::DISENGAGE_MAINBAR, true);
309 $this->getStandardTemplates();
310 $this->setTabs();
311 $cmd = $this->ctrl->getCmd("show");
312 $this->$cmd();
313 break;
314 }
315 $ret = null;
316 return $ret;
317 }
show()
returns the content of IniFile @access public
Column user interface class.
setTabs()
set personal desktop tabs
getStandardTemplates()
get standard templates
displayHeader()
display header and locator
initColumn($a_column_gui)
Class ilMyStaffGUI.
Class ilObjUserGUI.
Private Notes on PD.
BlockGUI class for Selected Items on Personal Desktop.
GUI class for personal profile.
GUI class for personal profile.
GUI class for personal workspace.
Portfolio repository gui class.
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
$context
Definition: webdav.php:26

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

+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilDashboardGUI::getCenterColumnHTML ( )

Display center column.

Definition at line 377 of file class.ilDashboardGUI.php.

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

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

+ Here is the call graph for this function:

◆ getLeftColumnHTML()

ilDashboardGUI::getLeftColumnHTML ( )

Display left column.

Definition at line 471 of file class.ilDashboardGUI.php.

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

References $ctrl, $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:

◆ getMainContent()

ilDashboardGUI::getMainContent ( )
protected

Get main content.

Returns
string

Definition at line 796 of file class.ilDashboardGUI.php.

797 {
798 $tpl = new ilTemplate("tpl.dashboard.html", true, true, "Services/Dashboard");
800
801 if ($settings->enabledSelectedItems()) {
802 $html = $this->renderFavourites();
803 }
804 $html .= $this->renderRecommendedContent();
805 $html .= $this->renderStudyProgrammes();
806 $html .= $this->renderLearningSequences();
807 if ($settings->enabledMemberships()) {
808 $html .= $this->renderMemberships();
809 }
810
811 $tpl->setVariable("CONTENT", $html);
812
813 return $tpl->get();
814 }
renderStudyProgrammes()
Render study programmes.
renderLearningSequences()
Render learning sequences.
renderRecommendedContent()
Render recommended content.
renderMemberships()
Render memberships.
renderFavourites()
Render favourites.
special template class to simplify handling of ITX/PEAR

References $settings, $tpl, renderFavourites(), renderLearningSequences(), renderMemberships(), renderRecommendedContent(), renderStudyProgrammes(), and user().

Referenced by getCenterColumnHTML().

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

◆ getRightColumnHTML()

ilDashboardGUI::getRightColumnHTML ( )

Display right column.

Definition at line 428 of file class.ilDashboardGUI.php.

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

References $ctrl, $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()

ilDashboardGUI::getStandardTemplates ( )

get standard templates

Definition at line 322 of file class.ilDashboardGUI.php.

323 {
324 $this->tpl->loadStandardTemplate();
325 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ initColumn()

ilDashboardGUI::initColumn (   $a_column_gui)

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

766 {
767 $a_column_gui->setActionMenu($this->action_menu);
768 }

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

+ Here is the caller graph for this function:

◆ jumpToBadges()

ilDashboardGUI::jumpToBadges ( )

Jump to badges.

Definition at line 728 of file class.ilDashboardGUI.php.

729 {
730 $this->ctrl->redirectByClass(["ilAchievementsGUI", "ilbadgeprofilegui"]);
731 }

◆ jumpToCalendar()

ilDashboardGUI::jumpToCalendar ( )

Jump to calendar.

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

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

◆ jumpToComments()

ilDashboardGUI::jumpToComments ( )

workaround for menu in calendar only

Definition at line 657 of file class.ilDashboardGUI.php.

658 {
660
661 if ($ilSetting->get('disable_comments')) {
662 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
663 ilUtil::redirect('ilias.php?baseClass=ilDashboardGUI');
664 return;
665 }
666
667 $this->ctrl->redirectByClass("ilpdnotesgui", "showPublicComments");
668 }

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

+ Here is the call graph for this function:

◆ jumpToLP()

ilDashboardGUI::jumpToLP ( )

workaround for menu in calendar only

Definition at line 681 of file class.ilDashboardGUI.php.

682 {
683 $this->ctrl->redirectByClass("illearningprogressgui");
684 }

◆ jumpToMemberships()

ilDashboardGUI::jumpToMemberships ( )

Jump to memberships.

Definition at line 578 of file class.ilDashboardGUI.php.

579 {
580 $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), (int) $_GET['view']);
581 if ($viewSettings->enabledMemberships()) {
582 $_GET['view'] = $viewSettings->getMembershipsView();
583 $this->ctrl->setParameter($this, "view", $viewSettings->getMembershipsView());
584 }
585 //$this->show();
586 $this->ctrl->redirect($this, "show");
587 }

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

+ Here is the call graph for this function:

◆ jumpToMyStaff()

ilDashboardGUI::jumpToMyStaff ( )
protected

Definition at line 720 of file class.ilDashboardGUI.php.

721 {
722 $this->ctrl->redirectByClass(ilMyStaffGUI::class);
723 }

◆ jumpToNews()

ilDashboardGUI::jumpToNews ( )

workaround for menu in calendar only

Definition at line 673 of file class.ilDashboardGUI.php.

674 {
675 $this->ctrl->redirectByClass("ilpdnewsgui");
676 }

◆ jumpToNotes()

ilDashboardGUI::jumpToNotes ( )

workaround for menu in calendar only

Definition at line 641 of file class.ilDashboardGUI.php.

642 {
644
645 if ($ilSetting->get('disable_notes')) {
646 ilUtil::sendFailure($this->lng->txt('permission_denied'), true);
647 ilUtil::redirect('ilias.php?baseClass=ilDashboardGUI');
648 return;
649 }
650
651 $this->ctrl->redirectByClass("ilpdnotesgui");
652 }

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

+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilDashboardGUI::jumpToPortfolio ( )

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

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

References $_GET.

◆ jumpToProfile()

ilDashboardGUI::jumpToProfile ( )

workaround for menu in calendar only

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

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

◆ jumpToSelectedItems()

ilDashboardGUI::jumpToSelectedItems ( )

Jump to selected items.

Definition at line 592 of file class.ilDashboardGUI.php.

593 {
594 $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), (int) $_GET['view']);
595 if ($viewSettings->enabledSelectedItems()) {
596 $_GET['view'] = $viewSettings->getSelectedItemsView();
597 $this->ctrl->setParameter($this, "view", $viewSettings->getSelectedItemsView());
598 }
599 $this->show();
600 }

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

+ Here is the call graph for this function:

◆ jumpToSettings()

ilDashboardGUI::jumpToSettings ( )

workaround for menu in calendar only

Definition at line 632 of file class.ilDashboardGUI.php.

633 {
634 $this->ctrl->redirectByClass("ilpersonalsettingsgui");
635 }

◆ jumpToSkills()

ilDashboardGUI::jumpToSkills ( )

Jump to personal skills.

Definition at line 736 of file class.ilDashboardGUI.php.

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

◆ jumpToWorkspace()

ilDashboardGUI::jumpToWorkspace ( )

Jump to personal workspace.

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

698 {
699 // incoming back link from shared resource
700 $cmd = "";
701 if ($_REQUEST["dsh"]) {
702 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "shr_id", $_REQUEST["dsh"]);
703 $cmd = "share";
704 }
705
706 if ($_REQUEST["wsp_id"]) {
707 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "wsp_id", (int) $_REQUEST["wsp_id"]);
708 }
709
710 if ($_REQUEST["gtp"]) {
711 $this->ctrl->setParameterByClass("ilpersonalworkspacegui", "gtp", (int) $_REQUEST["gtp"]);
712 }
713
714 $this->ctrl->redirectByClass("ilpersonalworkspacegui", $cmd);
715 }

◆ multiarray_sort()

ilDashboardGUI::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 533 of file class.ilDashboardGUI.php.

534 {
535 if ($array) {
536 $key_sorta = explode(";", $key_sort);
537
538 $multikeys = array_keys($array);
539 $keys = array_keys($array[$multikeys[0]]);
540
541 for ($m = 0; $m < count($key_sorta); $m++) {
542 $nkeys[$m] = trim($key_sorta[$m]);
543 }
544 $n += count($key_sorta);
545
546 for ($i = 0; $i < count($keys); $i++) {
547 if (!in_array($keys[$i], $key_sorta)) {
548 $nkeys[$n] = $keys[$i];
549 $n += "1";
550 }
551 }
552
553 for ($u = 0;$u < count($array); $u++) {
554 $arr = $array[$multikeys[$u]];
555 for ($s = 0; $s < count($nkeys); $s++) {
556 $k = $nkeys[$s];
557 $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
558 }
559 }
560 sort($output);
561 return $output;
562 }
563 }
$n
Definition: RandomTest.php:85
$i
Definition: metadata.php:24
$keys
Definition: metadata.php:187

References $i, $keys, and $n.

◆ prepareContentView()

ilDashboardGUI::prepareContentView ( )

Definition at line 511 of file class.ilDashboardGUI.php.

512 {
513 $this->tpl->loadStandardTemplate();
514
515 // display infopanel if something happened
517
518 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd.svg"));
519 $this->tpl->setTitle($this->lng->txt("personal_desktop"));
520 $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
521 }
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:

◆ renderFavourites()

ilDashboardGUI::renderFavourites ( )
protected

Render favourites.

Returns
string

Definition at line 821 of file class.ilDashboardGUI.php.

822 {
823 $block = new ilPDSelectedItemsBlockGUI();
824 return $block->getHTML();
825 }

Referenced by getMainContent().

+ Here is the caller graph for this function:

◆ renderLearningSequences()

ilDashboardGUI::renderLearningSequences ( )
protected

Render learning sequences.

Returns
string

Definition at line 865 of file class.ilDashboardGUI.php.

866 {
867 $st_block = new ilDashboardLearningSequenceGUI();
868 return $st_block->getHTML();
869 }
Personal Desktop-Presentation for the Learningsequence.

Referenced by getMainContent().

+ Here is the caller graph for this function:

◆ renderMemberships()

ilDashboardGUI::renderMemberships ( )
protected

Render memberships.

Returns
string

Definition at line 854 of file class.ilDashboardGUI.php.

855 {
856 $block = new ilPDMembershipBlockGUI();
857 return $block->getHTML();
858 }

Referenced by getMainContent().

+ Here is the caller graph for this function:

◆ renderRecommendedContent()

ilDashboardGUI::renderRecommendedContent ( )
protected

Render recommended content.

Returns
string

Definition at line 832 of file class.ilDashboardGUI.php.

833 {
834 $db_rec_content = new ilDashboardRecommendedContentGUI();
835 return $db_rec_content->render();
836 }

Referenced by getMainContent().

+ Here is the caller graph for this function:

◆ renderStudyProgrammes()

ilDashboardGUI::renderStudyProgrammes ( )
protected

Render study programmes.

Returns
string

Definition at line 843 of file class.ilDashboardGUI.php.

844 {
845 $st_block = ilStudyProgrammeDIC::dic()['ilStudyProgrammeDashboardViewGUI'];
846 return $st_block->getHTML();
847 }

References ilStudyProgrammeDIC\dic().

Referenced by getMainContent().

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

◆ setTabs()

ilDashboardGUI::setTabs ( )

set personal desktop tabs

Definition at line 568 of file class.ilDashboardGUI.php.

569 {
570 $ilHelp = $this->help;
571
572 $ilHelp->setScreenIdComponent("pd");
573 }

References $help.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ toggleHelp()

ilDashboardGUI::toggleHelp ( )
protected

Temporary workaround for toggling the help.

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

782 {
783 if (ilSession::get("show_help_tool") == "1") {
784 ilSession::set("show_help_tool", "0");
785 } else {
786 ilSession::set("show_help_tool", "1");
787 }
788 $this->ctrl->redirect($this, "show");
789 }
static set($a_var, $a_val)
Set a value.
static get($a_var)
Get a value.

References ilSession\get(), and ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ $action_menu

ilDashboardGUI::$action_menu
protected

Definition at line 80 of file class.ilDashboardGUI.php.

◆ $cmdClass

ilDashboardGUI::$cmdClass = ''

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

◆ $ctrl

ilDashboardGUI::$ctrl
protected

◆ $error

ilDashboardGUI::$error
protected

Definition at line 50 of file class.ilDashboardGUI.php.

Referenced by executeCommand().

◆ $help

ilDashboardGUI::$help
protected

Definition at line 70 of file class.ilDashboardGUI.php.

Referenced by setTabs().

◆ $lng

ilDashboardGUI::$lng

Definition at line 73 of file class.ilDashboardGUI.php.

Referenced by __construct(), getLeftColumnHTML(), and getRightColumnHTML().

◆ $main_menu

ilDashboardGUI::$main_menu
protected

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

◆ $plugin_admin

ilDashboardGUI::$plugin_admin
protected

◆ $rbacsystem

ilDashboardGUI::$rbacsystem
protected

Definition at line 60 of file class.ilDashboardGUI.php.

Referenced by executeCommand().

◆ $settings

ilDashboardGUI::$settings
protected

◆ $tpl

ilDashboardGUI::$tpl

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

Referenced by __construct(), and getMainContent().

◆ $user

ilDashboardGUI::$user
protected

Definition at line 45 of file class.ilDashboardGUI.php.

Referenced by getLeftColumnHTML(), and getRightColumnHTML().

◆ CMD_JUMP_TO_MY_STAFF

const ilDashboardGUI::CMD_JUMP_TO_MY_STAFF = "jumpToMyStaff"

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

Referenced by ilUserUtil\getStartingPointAsUrl().

◆ DISENGAGE_MAINBAR

const ilDashboardGUI::DISENGAGE_MAINBAR = "dash_mb_disengage"

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