ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

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  }
settings()
Definition: settings.php:2
const ANONYMOUS_USER_ID
Definition: constants.php:25
$_GET["client_id"]
user()
Definition: user.php:4
$ilErr
Definition: raiseError.php:18
help()
Definition: help.php:2
global $DIC
Definition: goto.php:24
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Member Function Documentation

◆ __loadNextClass()

ilDashboardGUI::__loadNextClass ( )

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

References $_SESSION.

Referenced by executeCommand().

755  {
756  $stored_classes = array('ildashboardgui',
757  'ilpersonalprofilegui',
758  'ilpdnotesgui',
759  'ilcalendarpresentationgui',
760  'illearningprogressgui');
761 
762  if (isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'], $stored_classes)) {
763  return $_SESSION['il_pd_history'];
764  } else {
765  $this->ctrl->getNextClass($this);
766  }
767  }
$_SESSION["AccountId"]
+ Here is the caller graph for this function:

◆ __storeLastClass()

ilDashboardGUI::__storeLastClass (   $a_class)

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

References $_SESSION.

Referenced by executeCommand().

769  {
770  $_SESSION['il_pd_history'] = $a_class;
771  $this->cmdClass = $a_class;
772  }
$_SESSION["AccountId"]
+ Here is the caller graph for this function:

◆ displayHeader()

ilDashboardGUI::displayHeader ( )

display header and locator

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

Referenced by executeCommand().

787  {
788  $this->tpl->setTitle($this->lng->txt("dash_dashboard"));
789  }
+ Here is the caller graph for this function:

◆ executeCommand()

ilDashboardGUI::executeCommand ( )

execute command

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

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

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  }
GUI class for personal workspace.
$context
Definition: webdav.php:26
displayHeader()
display header and locator
$_GET["client_id"]
Private Notes on PD.
Portfolio repository gui class.
initColumn($a_column_gui)
$ilErr
Definition: raiseError.php:18
Column user interface class.
global $DIC
Definition: goto.php:24
getStandardTemplates()
get standard templates
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
setTabs()
set personal desktop tabs
GUI class for personal profile.
global $ilSetting
Definition: privfeed.php:17
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI ...
$ret
Definition: parser.php:6
News on PD.
Class ilObjUserGUI.
static redirect($a_script)
GUI class for personal profile.
+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilDashboardGUI::getCenterColumnHTML ( )

Display center column.

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

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

Referenced by getStandardTemplates().

378  {
379  $ilCtrl = $this->ctrl;
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_COL_CENTER
const IL_COL_RIGHT
initColumn($a_column_gui)
getMainContent()
Get main content.
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()

ilDashboardGUI::getLeftColumnHTML ( )

Display left column.

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

References $ctrl, $ilUser, $lng, $plugin_admin, $user, IL_COL_LEFT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and initColumn().

472  {
474  $lng = $this->lng;
475  $ilCtrl = $this->ctrl;
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  }
initColumn($a_column_gui)
const IL_SCREEN_FULL
Column user interface class.
$ilUser
Definition: imgupload.php:18
const IL_SCREEN_SIDE
const IL_COL_LEFT
+ Here is the call graph for this function:

◆ getMainContent()

ilDashboardGUI::getMainContent ( )
protected

Get main content.

Returns
string

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

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

Referenced by getCenterColumnHTML().

810  {
811  $tpl = new ilTemplate("tpl.dashboard.html", true, true, "Services/Dashboard");
813 
814  if ($settings->enabledSelectedItems()) {
815  $html = $this->renderFavourites();
816  }
817  $html .= $this->renderRecommendedContent();
818  $html .= $this->renderStudyProgrammes();
819  $html .= $this->renderLearningSequences();
820  if ($settings->enabledMemberships()) {
821  $html .= $this->renderMemberships();
822  }
823 
824  $tpl->setVariable("CONTENT", $html);
825 
826  return $tpl->get();
827  }
renderRecommendedContent()
Render recommended content.
renderLearningSequences()
Render learning sequences.
user()
Definition: user.php:4
renderFavourites()
Render favourites.
renderMemberships()
Render memberships.
renderStudyProgrammes()
Render study programmes.
+ 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.

References $ctrl, $ilUser, $lng, $plugin_admin, $user, IL_COL_RIGHT, IL_SCREEN_FULL, IL_SCREEN_SIDE, and initColumn().

Referenced by getStandardTemplates().

429  {
431  $lng = $this->lng;
432  $ilCtrl = $this->ctrl;
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  }
const IL_COL_RIGHT
initColumn($a_column_gui)
const IL_SCREEN_FULL
Column user interface class.
$ilUser
Definition: imgupload.php:18
const IL_SCREEN_SIDE
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStandardTemplates()

ilDashboardGUI::getStandardTemplates ( )

get standard templates

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

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

Referenced by executeCommand().

323  {
324  $this->tpl->loadStandardTemplate();
325  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initColumn()

ilDashboardGUI::initColumn (   $a_column_gui)

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

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

779  {
780  $a_column_gui->setActionMenu($this->action_menu);
781  }
+ Here is the caller graph for this function:

◆ jumpToBadges()

ilDashboardGUI::jumpToBadges ( )

Jump to badges.

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

742  {
743  $this->ctrl->redirectByClass(["ilAchievementsGUI", "ilbadgeprofilegui"]);
744  }

◆ jumpToCalendar()

ilDashboardGUI::jumpToCalendar ( )

Jump to calendar.

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

References $DIC.

690  {
691  global $DIC;
692  $request = $DIC->http()->request();
693 
694  if ($request->getQueryParams()["cal_view"]) {
695  $cal_view = $request->getQueryParams()["cal_view"];
696  $this->ctrl->setParameter($this, "cal_view", $cal_view);
697  }
698 
699  if (!empty($request->getQueryParams()["cal_agenda_per"])) {
700  $cal_period = $request->getQueryParams()["cal_agenda_per"];
701  $this->ctrl->setParameter($this, "cal_agenda_per", $cal_period);
702  }
703 
704  $this->ctrl->redirectByClass("ilcalendarpresentationgui");
705  }
global $DIC
Definition: goto.php:24

◆ jumpToComments()

ilDashboardGUI::jumpToComments ( )

workaround for menu in calendar only

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

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

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  }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $ilSetting
Definition: privfeed.php:17
static redirect($a_script)
+ 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.

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

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  }
$_GET["client_id"]
user()
Definition: user.php:4
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
+ Here is the call graph for this function:

◆ jumpToMyStaff()

ilDashboardGUI::jumpToMyStaff ( )
protected

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

734  {
735  $this->ctrl->redirectByClass(ilMyStaffGUI::class);
736  }

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

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

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  }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $ilSetting
Definition: privfeed.php:17
static redirect($a_script)
+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilDashboardGUI::jumpToPortfolio ( )

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

References $_GET.

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  }
$_GET["client_id"]

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

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

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  }
$_GET["client_id"]
user()
Definition: user.php:4
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
+ 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 749 of file class.ilDashboardGUI.php.

750  {
751  $this->ctrl->redirectByClass("ilpersonalskillsgui");
752  }

◆ jumpToWorkspace()

ilDashboardGUI::jumpToWorkspace ( )

Jump to personal workspace.

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

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

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

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

References $i, $keys, and $n.

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  }
$keys
Definition: metadata.php:187
$n
Definition: RandomTest.php:85
$i
Definition: metadata.php:24

◆ prepareContentView()

ilDashboardGUI::prepareContentView ( )

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

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

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)
+ Here is the call graph for this function:

◆ renderFavourites()

ilDashboardGUI::renderFavourites ( )
protected

Render favourites.

Returns
string

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

Referenced by getMainContent().

835  {
836  $block = new ilPDSelectedItemsBlockGUI();
837  return $block->getHTML();
838  }
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI ...
+ Here is the caller graph for this function:

◆ renderLearningSequences()

ilDashboardGUI::renderLearningSequences ( )
protected

Render learning sequences.

Returns
string

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

Referenced by getMainContent().

879  {
880  $st_block = new ilDashboardLearningSequenceGUI();
881  return $st_block->getHTML();
882  }
Personal Desktop-Presentation for the Learningsequence.
+ Here is the caller graph for this function:

◆ renderMemberships()

ilDashboardGUI::renderMemberships ( )
protected

Render memberships.

Returns
string

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

Referenced by getMainContent().

868  {
869  $block = new ilPDMembershipBlockGUI();
870  return $block->getHTML();
871  }
+ Here is the caller graph for this function:

◆ renderRecommendedContent()

ilDashboardGUI::renderRecommendedContent ( )
protected

Render recommended content.

Returns
string

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

Referenced by getMainContent().

846  {
847  $db_rec_content = new ilDashboardRecommendedContentGUI();
848  return $db_rec_content->render();
849  }
+ Here is the caller graph for this function:

◆ renderStudyProgrammes()

ilDashboardGUI::renderStudyProgrammes ( )
protected

Render study programmes.

Returns
string

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

References ilStudyProgrammeDIC\dic().

Referenced by getMainContent().

857  {
858  $st_block = ilStudyProgrammeDIC::dic()['ilStudyProgrammeDashboardViewGUI'];
859  return $st_block->getHTML();
860  }
+ 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.

References $help.

Referenced by executeCommand().

569  {
570  $ilHelp = $this->help;
571 
572  $ilHelp->setScreenIdComponent("pd");
573  }
+ Here is the caller graph for this function:

◆ toggleHelp()

ilDashboardGUI::toggleHelp ( )
protected

Temporary workaround for toggling the help.

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

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

795  {
796  if (ilSession::get("show_help_tool") == "1") {
797  ilSession::set("show_help_tool", "0");
798  } else {
799  ilSession::set("show_help_tool", "1");
800  }
801  $this->ctrl->redirect($this, "show");
802  }
static get($a_var)
Get a value.
static set($a_var, $a_val)
Set a value.
+ 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

◆ $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(), getMainContent(), and getStandardTemplates().

◆ $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\getStartingPoint().

◆ DISENGAGE_MAINBAR

const ilDashboardGUI::DISENGAGE_MAINBAR = "dash_mb_disengage"

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