ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilDashboardGUI Class Reference

ilDashboardGUI: ilPersonalProfileGUI ilDashboardGUI: ilObjUserGUI, ilPDNotesGUI ilDashboardGUI: ilColumnGUI, ilPDNewsGUI, ilCalendarPresentationGUI ilDashboardGUI: ilMailSearchGUI, ilContactGUI ilDashboardGUI: ilPersonalWorkspaceGUI, ilPersonalSettingsGUI ilDashboardGUI: ilPortfolioRepositoryGUI, ilObjChatroomGUI ilDashboardGUI: ilMyStaffGUI ilDashboardGUI: ilGroupUserActionsGUI, ilAchievementsGUI ilDashboardGUI: ilPDMailBlockGUI ilDashboardGUI: ilSelectedItemsBlockGUI, ilDashboardRecommendedContentGUI, ilMembershipBlockGUI, ilDashboardLearningSequenceGUI, ilStudyProgrammeDashboardViewGUI, ilObjStudyProgrammeGUI ilDashboardGUI: ilObjIndividualAssessmentGUI More...

+ Inheritance diagram for ilDashboardGUI:
+ Collaboration diagram for ilDashboardGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 getStandardTemplates ()
 
 show ()
 
 getCenterColumnHTML ()
 
 getRightColumnHTML ()
 
 prepareContentView ()
 
 setTabs ()
 
 jumpToMemberships ()
 
 jumpToSelectedItems ()
 
 jumpToProfile ()
 
 jumpToPortfolio ()
 
 jumpToSettings ()
 
 jumpToNews ()
 
 jumpToCalendar ()
 
 jumpToWorkspace ()
 
 jumpToBadges ()
 
 jumpToSkills ()
 
 displayHeader ()
 

Data Fields

const CMD_JUMP_TO_MY_STAFF = 'jumpToMyStaff'
 
const DISENGAGE_MAINBAR = 'dash_mb_disengage'
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
string $cmdClass = ''
 

Protected Member Functions

 jumpToMyStaff ()
 
 toggleHelp ()
 
 getMainContent ()
 
 renderView (int $view)
 

Protected Attributes

ilCtrl $ctrl
 
ilObjUser $user
 
ilSetting $settings
 
ilRbacSystem $rbacsystem
 
ilHelpGUI $help
 
ContextServices $tool_context
 
int $requested_view
 
int $requested_prt_id
 
int $requested_gtp
 
string $requested_dsh
 
int $requested_wsp_id
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDashboardGUI::__construct ( )

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

References $DIC, $params, $tpl, ANONYMOUS_USER_ID, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), and ILIAS\Repository\user().

57  {
58  global $DIC;
59 
60  $this->tool_context = $DIC->globalScreen()->tool()->context();
61  $this->user = $DIC->user();
62  $this->settings = $DIC->settings();
63  $this->rbacsystem = $DIC->rbac()->system();
64  $this->help = $DIC->help();
65  $tpl = $DIC->ui()->mainTemplate();
66  $this->lng = $DIC->language();
67  $this->ctrl = $DIC->ctrl();
68 
69  if ($this->user->getId() === ANONYMOUS_USER_ID) {
70  $DIC->ui()->mainTemplate()->setOnScreenMessage('failure', $this->lng->txt('msg_not_available_for_anon'), true);
71  $DIC->ctrl()->redirectToURL('login.php?cmd=force_login');
72  }
73 
74  $this->tpl = $tpl;
75 
76  $this->ctrl->setContextObject(
77  $this->user->getId(),
78  'user'
79  );
80 
81  $this->lng->loadLanguageModule('pdesk');
82  $this->lng->loadLanguageModule('pd'); // #16813
83  $this->lng->loadLanguageModule('dash');
84  $this->lng->loadLanguageModule('mmbr');
85 
86  $params = $DIC->http()->request()->getQueryParams();
87  $this->cmdClass = ($params['cmdClass'] ?? '');
88  $this->requested_view = (int) ($params['view'] ?? 0);
89  $this->requested_prt_id = (int) ($params['prt_id'] ?? 0);
90  $this->requested_gtp = (int) ($params['gtp'] ?? 0);
91  $this->requested_dsh = (string) ($params['dsh'] ?? null);
92  $this->requested_wsp_id = (int) ($params['wsp_id'] ?? 0);
93 
94  $this->ctrl->saveParameter($this, ['view']);
95  }
const ANONYMOUS_USER_ID
Definition: constants.php:27
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:33
ilGlobalTemplateInterface $tpl
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ displayHeader()

ilDashboardGUI::displayHeader ( )

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

References ILIAS\Repository\lng().

Referenced by executeCommand().

449  : void
450  {
451  $this->tpl->setTitle($this->lng->txt('dash_dashboard'));
452  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilDashboardGUI::executeCommand ( )

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

References $cmdClass, $context, $ilSetting, $settings, $tool_context, ILIAS\Repository\ctrl(), displayHeader(), ilBuddySystem\getInstance(), getStandardTemplates(), ILIAS\Repository\lng(), ilUtil\redirect(), setTabs(), and show().

97  : void
98  {
100  $context->stack()->desktop();
102 
103  $next_class = $this->ctrl->getNextClass();
104  $this->ctrl->setReturn($this, 'show');
105  switch ($next_class) {
106  case strtolower(ilPersonalProfileGUI::class):
107  $this->getStandardTemplates();
108  $this->setTabs();
109  $profile_gui = new ilPersonalProfileGUI();
110  $this->ctrl->forwardCommand($profile_gui);
111  break;
112 
113  case strtolower(ilPersonalSettingsGUI::class):
114  $this->getStandardTemplates();
115  $this->setTabs();
116  $settings_gui = new ilPersonalSettingsGUI();
117  $this->ctrl->forwardCommand($settings_gui);
118  break;
119 
120  case strtolower(ilCalendarPresentationGUI::class):
121  $this->getStandardTemplates();
122  $this->displayHeader();
123  $this->tpl->setTitle($this->lng->txt('calendar'));
124  $this->setTabs();
125  $cal = new ilCalendarPresentationGUI();
126  $this->ctrl->forwardCommand($cal);
127  $this->tpl->printToStdout();
128  break;
129 
130  case strtolower(ilPDNotesGUI::class):
131  if ($ilSetting->get('disable_notes') && $ilSetting->get('disable_comments')) {
132  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('permission_denied'), true);
133  ilUtil::redirect('ilias.php?baseClass=ilDashboardGUI');
134  return;
135  }
136 
137  $this->getStandardTemplates();
138  $this->setTabs();
139  $pd_notes_gui = new ilPDNotesGUI();
140  $this->ctrl->forwardCommand($pd_notes_gui);
141  break;
142 
143  case strtolower(ilPDNewsGUI::class):
144  $this->getStandardTemplates();
145  $this->setTabs();
146  $pd_news_gui = new ilPDNewsGUI();
147  $this->ctrl->forwardCommand($pd_news_gui);
148  break;
149 
150  case strtolower(ilColumnGUI::class):
151  if (strtolower($cmdClass = $this->ctrl->getCmdClass()) === strtolower(ilSelectedItemsBlockGUI::class)) {
152  $gui = new $cmdClass();
153  $ret = $this->ctrl->forwardCommand($gui);
154  if ($ret !== '') {
155  $this->tpl->setContent($ret);
156  $this->tpl->printToStdout();
157  }
158  break;
159  }
160  $this->getStandardTemplates();
161  $this->setTabs();
162  $column_gui = new ilColumnGUI('pd');
163  $this->show();
164  break;
165  case strtolower(ilContactGUI::class):
166  if (!ilBuddySystem::getInstance()->isEnabled()) {
167  throw new ilPermissionException($this->lng->txt('msg_no_perm_read'));
168  }
169 
170  $this->getStandardTemplates();
171  $this->setTabs();
172  $this->tpl->setTitle($this->lng->txt('mail_addressbook'));
173 
174  $this->ctrl->forwardCommand(new ilContactGUI());
175  break;
176 
177  case strtolower(ilPersonalWorkspaceGUI::class):
178  $wsgui = new ilPersonalWorkspaceGUI();
179  $this->ctrl->forwardCommand($wsgui);
180  $this->tpl->printToStdout();
181  break;
182 
183  case strtolower(ilPortfolioRepositoryGUI::class):
184  $this->getStandardTemplates();
185  $this->setTabs();
186  $pfgui = new ilPortfolioRepositoryGUI();
187  $this->ctrl->forwardCommand($pfgui);
188  $this->tpl->printToStdout();
189  break;
190 
191  case strtolower(ilAchievementsGUI::class):
192  $this->getStandardTemplates();
193  $this->setTabs();
194  $achievegui = new ilAchievementsGUI();
195  $this->ctrl->forwardCommand($achievegui);
196  break;
197 
198  case strtolower(ilMyStaffGUI::class):
199  $this->getStandardTemplates();
200  $mstgui = new ilMyStaffGUI();
201  $this->ctrl->forwardCommand($mstgui);
202  break;
203  case strtolower(ilGroupUserActionsGUI::class):
204  $this->getStandardTemplates();
205  $this->setTabs();
206  $ggui = new ilGroupUserActionsGUI();
207  $this->ctrl->forwardCommand($ggui);
208  $this->tpl->printToStdout();
209  break;
210  case strtolower(ilDashboardLearningSequenceGUI::class):
211  case strtolower(ilMembershipBlockGUI::class):
212  case strtolower(ilDashboardRecommendedContentGUI::class):
213  case strtolower(ilSelectedItemsBlockGUI::class):
214  case strtolower(ilStudyProgrammeDashboardViewGUI::class):
215  $gui = new $next_class();
216  $ret = $this->ctrl->forwardCommand($gui);
217  if ($ret !== '' && $ret !== null) {
218  $this->tpl->setContent($ret);
219  }
220  $this->tpl->printToStdout();
221  break;
222  case strtolower(ilObjStudyProgrammeGUI::class):
223  $gui = new ilObjStudyProgrammeGUI();
224  $ret = $this->ctrl->forwardCommand($gui);
225  $this->tpl->printToStdout();
226  break;
227  default:
228  $context->current()->addAdditionalData(self::DISENGAGE_MAINBAR, true);
229  $this->getStandardTemplates();
230  $this->setTabs();
231  $cmd = $this->ctrl->getCmd('show');
232  $this->$cmd();
233  break;
234  }
235  }
GUI class for personal workspace.
$context
Definition: webdav.php:31
Class ilObjStudyProgrammeGUI class ilObjStudyProgrammeGUI: ilPermissionGUI ilObjStudyProgrammeGUI: ...
ContextServices $tool_context
Private Notes on PD.
Portfolio repository gui class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists(getcwd() . '/ilias.ini.php'))
Definition: confirmReg.php:21
Column user interface class.
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
static redirect(string $a_script)
GUI class for personal profile.
global $ilSetting
Definition: privfeed.php:18
News on PD.
+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilDashboardGUI::getCenterColumnHTML ( )

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

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

Referenced by show().

255  : string
256  {
257  $ilCtrl = $this->ctrl;
258 
259  $html = '';
260  $column_gui = new ilColumnGUI('pd', IL_COL_CENTER);
261 
262  if ($ilCtrl->getNextClass() == 'ilcolumngui' &&
263  $column_gui->getCmdSide() == IL_COL_CENTER) {
264  $html = $ilCtrl->forwardCommand($column_gui);
265  } else {
266  if (!$ilCtrl->isAsynch()) {
267  if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) {
268  if ($column_gui->getCmdSide() == IL_COL_RIGHT) {
269  $column_gui = new ilColumnGUI('pd', IL_COL_RIGHT);
270  $html = $ilCtrl->forwardCommand($column_gui);
271  }
272  if ($column_gui->getCmdSide() == IL_COL_LEFT) {
273  $column_gui = new ilColumnGUI('pd', IL_COL_LEFT);
274  $html = $ilCtrl->forwardCommand($column_gui);
275  }
276  } else {
277  $html = '';
278 
279  $uip = new ilUIHookProcessor(
280  'Services/Dashboard',
281  'center_column',
282  ['personal_desktop_gui' => $this]
283  );
284  if (!$uip->replaced()) {
285  $html = $this->getMainContent();
286  }
287  $html = $uip->getHTML($html);
288  }
289  }
290  }
291  return $html;
292  }
const IL_COL_CENTER
const IL_COL_RIGHT
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:

◆ getMainContent()

ilDashboardGUI::getMainContent ( )
protected

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

References ilGlobalTemplateInterface\get(), renderView(), ilGlobalTemplateInterface\setVariable(), and ILIAS\Repository\user().

Referenced by getCenterColumnHTML().

464  : string
465  {
466  $html = '';
467  $tpl = new ilTemplate('tpl.dashboard.html', true, true, 'Services/Dashboard');
469 
470  foreach ($settings->getViewPositions() as $view_position) {
471  if ($settings->isViewEnabled($view_position)) {
472  $html .= $this->renderView($view_position);
473  }
474  }
475 
476 
477  $tpl->setVariable('CONTENT', $html);
478 
479  return $tpl->get();
480  }
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
ilGlobalTemplateInterface $tpl
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRightColumnHTML()

ilDashboardGUI::getRightColumnHTML ( )

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

References $ctrl, IL_COL_RIGHT, IL_SCREEN_FULL, and IL_SCREEN_SIDE.

Referenced by show().

294  : string
295  {
296  $ilCtrl = $this->ctrl;
297 
298  $html = '';
299 
300  $column_gui = new ilColumnGUI('pd', IL_COL_RIGHT);
301 
302  if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
303  return '';
304  }
305 
306  if ($ilCtrl->getNextClass() == 'ilcolumngui' &&
307  $column_gui->getCmdSide() == IL_COL_RIGHT &&
308  $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
309  $html = $ilCtrl->forwardCommand($column_gui);
310  } else {
311  if (!$ilCtrl->isAsynch()) {
312  $html = '';
313 
314  $uip = new ilUIHookProcessor(
315  'Services/Dashboard',
316  'right_column',
317  ['personal_desktop_gui' => $this]
318  );
319  if (!$uip->replaced()) {
320  $html = $ilCtrl->getHTML($column_gui);
321  }
322  $html = $uip->getHTML($html);
323  }
324  }
325 
326  return $html;
327  }
const IL_COL_RIGHT
const IL_SCREEN_FULL
Column user interface class.
const IL_SCREEN_SIDE
+ Here is the caller graph for this function:

◆ getStandardTemplates()

ilDashboardGUI::getStandardTemplates ( )

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

Referenced by executeCommand().

237  : void
238  {
239  $this->tpl->loadStandardTemplate();
240  }
+ Here is the caller graph for this function:

◆ jumpToBadges()

ilDashboardGUI::jumpToBadges ( )

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

References ILIAS\Repository\ctrl().

439  : void
440  {
441  $this->ctrl->redirectByClass([ilAchievementsGUI::class, ilBadgeProfileGUI::class]);
442  }
+ Here is the call graph for this function:

◆ jumpToCalendar()

ilDashboardGUI::jumpToCalendar ( )

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

References $DIC, and ILIAS\Repository\ctrl().

395  : void
396  {
397  global $DIC;
398  $request = $DIC->http()->request();
399 
400  $query_params = $request->getQueryParams();
401 
402  if (array_key_exists('cal_view', $query_params) && $query_params['cal_view']) {
403  $cal_view = $query_params['cal_view'];
404  $this->ctrl->setParameter($this, 'cal_view', $cal_view);
405  }
406 
407  if (!empty($query_params['cal_agenda_per'])) {
408  $cal_period = $query_params['cal_agenda_per'];
409  $this->ctrl->setParameter($this, 'cal_agenda_per', $cal_period);
410  }
411 
412  $this->ctrl->redirectByClass(ilCalendarPresentationGUI::class);
413  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ jumpToMemberships()

ilDashboardGUI::jumpToMemberships ( )

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

References $GLOBALS, ILIAS\Repository\ctrl(), and ILIAS\Repository\user().

345  : void
346  {
347  $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), $this->requested_view);
348  if ($viewSettings->enabledMemberships()) {
349  $this->ctrl->setParameter($this, 'view', $viewSettings->getMembershipsView());
350  }
351  $this->ctrl->redirect($this, 'show');
352  }
$GLOBALS["DIC"]
Definition: wac.php:31
+ Here is the call graph for this function:

◆ jumpToMyStaff()

ilDashboardGUI::jumpToMyStaff ( )
protected

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

References ILIAS\Repository\ctrl().

434  : void
435  {
436  $this->ctrl->redirectByClass(ilMyStaffGUI::class);
437  }
+ Here is the call graph for this function:

◆ jumpToNews()

ilDashboardGUI::jumpToNews ( )

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

References ILIAS\Repository\ctrl().

390  : void
391  {
392  $this->ctrl->redirectByClass(ilPDNewsGUI::class);
393  }
+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilDashboardGUI::jumpToPortfolio ( )

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

References ILIAS\Repository\ctrl().

368  : void
369  {
370  $cmd = '';
371  if ($this->requested_dsh != '') {
372  $this->ctrl->setParameterByClass(ilPortfolioRepositoryGUI::class, 'shr_id', $this->requested_dsh);
373  $cmd = 'showOther';
374  }
375 
376  if ($this->requested_prt_id > 0) {
377  $this->ctrl->setParameterByClass(ilObjPortfolioGUI::class, 'prt_id', $this->requested_prt_id);
378  $this->ctrl->setParameterByClass(ilObjPortfolioGUI::class, 'gtp', $this->requested_gtp);
379  $this->ctrl->redirectByClass([ilPortfolioRepositoryGUI::class, ilObjPortfolioGUI::class], 'preview');
380  } else {
381  $this->ctrl->redirectByClass(ilPortfolioRepositoryGUI::class, $cmd);
382  }
383  }
+ Here is the call graph for this function:

◆ jumpToProfile()

ilDashboardGUI::jumpToProfile ( )

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

References ILIAS\Repository\ctrl().

363  : void
364  {
365  $this->ctrl->redirectByClass(ilPersonalProfileGUI::class);
366  }
+ Here is the call graph for this function:

◆ jumpToSelectedItems()

ilDashboardGUI::jumpToSelectedItems ( )

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

References $GLOBALS, ILIAS\Repository\ctrl(), show(), and ILIAS\Repository\user().

354  : void
355  {
356  $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), $this->requested_view);
357  if ($viewSettings->enabledSelectedItems()) {
358  $this->ctrl->setParameter($this, 'view', $viewSettings->getSelectedItemsView());
359  }
360  $this->show();
361  }
$GLOBALS["DIC"]
Definition: wac.php:31
+ Here is the call graph for this function:

◆ jumpToSettings()

ilDashboardGUI::jumpToSettings ( )

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

References ILIAS\Repository\ctrl().

385  : void
386  {
387  $this->ctrl->redirectByClass(ilPersonalSettingsGUI::class);
388  }
+ Here is the call graph for this function:

◆ jumpToSkills()

ilDashboardGUI::jumpToSkills ( )

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

References ILIAS\Repository\ctrl().

444  : void
445  {
446  $this->ctrl->redirectByClass(ilPersonalSkillsGUI::class);
447  }
+ Here is the call graph for this function:

◆ jumpToWorkspace()

ilDashboardGUI::jumpToWorkspace ( )

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

References ILIAS\Repository\ctrl().

415  : void
416  {
417  $cmd = '';
418  if ($this->requested_dsh != '') {
419  $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'shr_id', $this->requested_dsh);
420  $cmd = 'share';
421  }
422 
423  if ($this->requested_wsp_id > 0) {
424  $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'wsp_id', $this->requested_wsp_id);
425  }
426 
427  if ($this->requested_gtp) {
428  $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'gtp', $this->requested_gtp);
429  }
430 
431  $this->ctrl->redirectByClass(ilPersonalWorkspaceGUI::class, $cmd);
432  }
+ Here is the call graph for this function:

◆ prepareContentView()

ilDashboardGUI::prepareContentView ( )

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

References ilUtil\getImagePath(), and ILIAS\Repository\lng().

329  : void
330  {
331  $this->tpl->loadStandardTemplate();
332 
333  $this->tpl->setTitleIcon(ilUtil::getImagePath('standard/icon_pd.svg'));
334  $this->tpl->setTitle($this->lng->txt('personal_desktop'));
335  $this->tpl->setVariable('IMG_SPACE', ilUtil::getImagePath('media/spacer.png'));
336  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:

◆ renderView()

ilDashboardGUI::renderView ( int  $view)
protected

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

References ilPDSelectedItemsBlockConstants\VIEW_LEARNING_SEQUENCES, ilPDSelectedItemsBlockConstants\VIEW_MY_MEMBERSHIPS, ilPDSelectedItemsBlockConstants\VIEW_MY_STUDYPROGRAMME, ilPDSelectedItemsBlockConstants\VIEW_RECOMMENDED_CONTENT, and ilPDSelectedItemsBlockConstants\VIEW_SELECTED_ITEMS.

Referenced by getMainContent().

482  : string
483  {
484  switch ($view) {
486  return (new ilSelectedItemsBlockGUI())->getHTML();
488  return (new ilDashboardRecommendedContentGUI())->getHTML();
490  return (new ilMembershipBlockGUI())->getHTML();
492  return (new ilDashboardLearningSequenceGUI())->getHTML();
494  return (new ilStudyProgrammeDashboardViewGUI())->getHTML();
495  default:
496  return '';
497  }
498  }
+ Here is the caller graph for this function:

◆ setTabs()

ilDashboardGUI::setTabs ( )

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

References $help, and ilHelpGUI\setScreenIdComponent().

Referenced by executeCommand().

338  : void
339  {
340  $ilHelp = $this->help;
341 
342  $ilHelp->setScreenIdComponent('pd');
343  }
setScreenIdComponent(string $a_comp)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show()

ilDashboardGUI::show ( )

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

References getCenterColumnHTML(), ilUtil\getImagePath(), getRightColumnHTML(), ILIAS\Repository\lng(), and ilBlockSetting\preloadPDBlockSettings().

Referenced by executeCommand(), and jumpToSelectedItems().

242  : void
243  {
245 
246  $this->tpl->setTitle($this->lng->txt('dash_dashboard'));
247  $this->tpl->setTitleIcon(ilUtil::getImagePath('standard/icon_dshs.svg'), $this->lng->txt('dash_dashboard'));
248  $this->tpl->setVariable('IMG_SPACE', ilUtil::getImagePath('media/spacer.png'));
249 
250  $this->tpl->setContent($this->getCenterColumnHTML());
251  $this->tpl->setRightContent($this->getRightColumnHTML());
252  $this->tpl->printToStdout();
253  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static preloadPDBlockSettings()
Preload pd info.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toggleHelp()

ilDashboardGUI::toggleHelp ( )
protected

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

References ILIAS\Repository\ctrl(), ilSession\get(), and ilSession\set().

454  : void
455  {
456  if (ilSession::get('show_help_tool') == '1') {
457  ilSession::set('show_help_tool', '0');
458  } else {
459  ilSession::set('show_help_tool', '1');
460  }
461  $this->ctrl->redirect($this, 'show');
462  }
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

Field Documentation

◆ $cmdClass

string ilDashboardGUI::$cmdClass = ''

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

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilDashboardGUI::$ctrl
protected

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

Referenced by getCenterColumnHTML(), and getRightColumnHTML().

◆ $help

ilHelpGUI ilDashboardGUI::$help
protected

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

Referenced by setTabs().

◆ $lng

ilLanguage ilDashboardGUI::$lng

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

◆ $rbacsystem

ilRbacSystem ilDashboardGUI::$rbacsystem
protected

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

◆ $requested_dsh

string ilDashboardGUI::$requested_dsh
protected

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

◆ $requested_gtp

int ilDashboardGUI::$requested_gtp
protected

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

◆ $requested_prt_id

int ilDashboardGUI::$requested_prt_id
protected

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

◆ $requested_view

int ilDashboardGUI::$requested_view
protected

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

◆ $requested_wsp_id

int ilDashboardGUI::$requested_wsp_id
protected

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

◆ $settings

ilSetting ilDashboardGUI::$settings
protected

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

Referenced by executeCommand().

◆ $tool_context

ContextServices ilDashboardGUI::$tool_context
protected

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

Referenced by executeCommand().

◆ $tpl

ilGlobalTemplateInterface ilDashboardGUI::$tpl

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

Referenced by __construct().

◆ $user

ilObjUser ilDashboardGUI::$user
protected

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

◆ CMD_JUMP_TO_MY_STAFF

const ilDashboardGUI::CMD_JUMP_TO_MY_STAFF = 'jumpToMyStaff'

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

◆ DISENGAGE_MAINBAR

const ilDashboardGUI::DISENGAGE_MAINBAR = 'dash_mb_disengage'

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