ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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: ilDashboardPageGUI 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
 
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(), null, 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->help = $DIC->help();
64  $tpl = $DIC->ui()->mainTemplate();
65  $this->lng = $DIC->language();
66  $this->ctrl = $DIC->ctrl();
67 
68  if ($this->user->getId() === ANONYMOUS_USER_ID) {
69  $DIC->ui()->mainTemplate()->setOnScreenMessage('failure', $this->lng->txt('msg_not_available_for_anon'), true);
70  $DIC->ctrl()->redirectToURL('login.php?cmd=force_login');
71  }
72 
73  $this->tpl = $tpl;
74 
75  $this->ctrl->setContextObject(
76  $this->user->getId(),
77  'user'
78  );
79 
80  $this->lng->loadLanguageModule('pdesk');
81  $this->lng->loadLanguageModule('pd'); // #16813
82  $this->lng->loadLanguageModule('dash');
83  $this->lng->loadLanguageModule('mmbr');
84 
85  $params = $DIC->http()->request()->getQueryParams();
86  $this->cmdClass = ($params['cmdClass'] ?? '');
87  $this->requested_view = (int) ($params['view'] ?? 0);
88  $this->requested_prt_id = (int) ($params['prt_id'] ?? 0);
89  $this->requested_gtp = (int) ($params['gtp'] ?? 0);
90  $this->requested_dsh = (string) ($params['dsh'] ?? null);
91  $this->requested_wsp_id = (int) ($params['wsp_id'] ?? 0);
92 
93  $this->ctrl->saveParameter($this, ['view']);
94  }
const ANONYMOUS_USER_ID
Definition: constants.php:27
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
ilGlobalTemplateInterface $tpl
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ displayHeader()

ilDashboardGUI::displayHeader ( )

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

References ILIAS\Repository\lng().

Referenced by executeCommand().

457  : void
458  {
459  $this->tpl->setTitle($this->lng->txt('dash_dashboard'));
460  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilDashboardGUI::executeCommand ( )

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

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

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

◆ getCenterColumnHTML()

ilDashboardGUI::getCenterColumnHTML ( )

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

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

Referenced by show().

263  : string
264  {
265  $ilCtrl = $this->ctrl;
266 
267  $html = '';
268  $column_gui = new ilColumnGUI('pd', IL_COL_CENTER);
269 
270  if ($ilCtrl->getNextClass() == 'ilcolumngui' &&
271  $column_gui->getCmdSide() == IL_COL_CENTER) {
272  $html = $ilCtrl->forwardCommand($column_gui);
273  } else {
274  if (!$ilCtrl->isAsynch()) {
275  if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) {
276  if ($column_gui->getCmdSide() == IL_COL_RIGHT) {
277  $column_gui = new ilColumnGUI('pd', IL_COL_RIGHT);
278  $html = $ilCtrl->forwardCommand($column_gui);
279  }
280  if ($column_gui->getCmdSide() == IL_COL_LEFT) {
281  $column_gui = new ilColumnGUI('pd', IL_COL_LEFT);
282  $html = $ilCtrl->forwardCommand($column_gui);
283  }
284  } else {
285  $html = '';
286 
287  $uip = new ilUIHookProcessor(
288  'components/ILIAS/Dashboard',
289  'center_column',
290  ['personal_desktop_gui' => $this]
291  );
292  if (!$uip->replaced()) {
293  $html = $this->getMainContent();
294  }
295  $html = $uip->getHTML($html);
296  }
297  }
298  }
299  return $html;
300  }
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 472 of file class.ilDashboardGUI.php.

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

Referenced by getCenterColumnHTML().

472  : string
473  {
474  $html = '';
475  $tpl = new ilTemplate('tpl.dashboard.html', true, true, 'components/ILIAS/Dashboard');
477 
478  foreach ($settings->getViewPositions() as $view_position) {
479  if ($settings->isViewEnabled($view_position)) {
480  $html .= $this->renderView($view_position);
481  }
482  }
483 
484 
485  $tpl->setVariable('CONTENT', $html);
486 
487  return $tpl->get();
488  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
ilGlobalTemplateInterface $tpl
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRightColumnHTML()

ilDashboardGUI::getRightColumnHTML ( )

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

References $ctrl, IL_COL_RIGHT, IL_SCREEN_FULL, and IL_SCREEN_SIDE.

Referenced by show().

302  : string
303  {
304  $ilCtrl = $this->ctrl;
305 
306  $html = '';
307 
308  $column_gui = new ilColumnGUI('pd', IL_COL_RIGHT);
309 
310  if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
311  return '';
312  }
313 
314  if ($ilCtrl->getNextClass() == 'ilcolumngui' &&
315  $column_gui->getCmdSide() == IL_COL_RIGHT &&
316  $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
317  $html = $ilCtrl->forwardCommand($column_gui);
318  } else {
319  if (!$ilCtrl->isAsynch()) {
320  $html = '';
321 
322  $uip = new ilUIHookProcessor(
323  'components/ILIAS/Dashboard',
324  'right_column',
325  ['personal_desktop_gui' => $this]
326  );
327  if (!$uip->replaced()) {
328  $html = $ilCtrl->getHTML($column_gui);
329  }
330  $html = $uip->getHTML($html);
331  }
332  }
333 
334  return $html;
335  }
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 236 of file class.ilDashboardGUI.php.

Referenced by executeCommand().

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

◆ jumpToBadges()

ilDashboardGUI::jumpToBadges ( )

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

References ILIAS\Repository\ctrl().

447  : void
448  {
449  $this->ctrl->redirectByClass([ilAchievementsGUI::class, ilBadgeProfileGUI::class]);
450  }
+ Here is the call graph for this function:

◆ jumpToCalendar()

ilDashboardGUI::jumpToCalendar ( )

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

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

403  : void
404  {
405  global $DIC;
406  $request = $DIC->http()->request();
407 
408  $query_params = $request->getQueryParams();
409 
410  if (array_key_exists('cal_view', $query_params) && $query_params['cal_view']) {
411  $cal_view = $query_params['cal_view'];
412  $this->ctrl->setParameter($this, 'cal_view', $cal_view);
413  }
414 
415  if (!empty($query_params['cal_agenda_per'])) {
416  $cal_period = $query_params['cal_agenda_per'];
417  $this->ctrl->setParameter($this, 'cal_agenda_per', $cal_period);
418  }
419 
420  $this->ctrl->redirectByClass(ilCalendarPresentationGUI::class);
421  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ jumpToMemberships()

ilDashboardGUI::jumpToMemberships ( )

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

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

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

◆ jumpToMyStaff()

ilDashboardGUI::jumpToMyStaff ( )
protected

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

References ILIAS\Repository\ctrl().

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

◆ jumpToNews()

ilDashboardGUI::jumpToNews ( )

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

References ILIAS\Repository\ctrl().

398  : void
399  {
400  $this->ctrl->redirectByClass(ilPDNewsGUI::class);
401  }
+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilDashboardGUI::jumpToPortfolio ( )

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

References ILIAS\Repository\ctrl().

376  : void
377  {
378  $cmd = '';
379  if ($this->requested_dsh != '') {
380  $this->ctrl->setParameterByClass(ilPortfolioRepositoryGUI::class, 'shr_id', $this->requested_dsh);
381  $cmd = 'showOther';
382  }
383 
384  if ($this->requested_prt_id > 0) {
385  $this->ctrl->setParameterByClass(ilObjPortfolioGUI::class, 'prt_id', $this->requested_prt_id);
386  $this->ctrl->setParameterByClass(ilObjPortfolioGUI::class, 'gtp', $this->requested_gtp);
387  $this->ctrl->redirectByClass([ilPortfolioRepositoryGUI::class, ilObjPortfolioGUI::class], 'preview');
388  } else {
389  $this->ctrl->redirectByClass(ilPortfolioRepositoryGUI::class, $cmd);
390  }
391  }
+ Here is the call graph for this function:

◆ jumpToProfile()

ilDashboardGUI::jumpToProfile ( )

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

References ILIAS\Repository\ctrl().

371  : void
372  {
373  $this->ctrl->redirectByClass(ilPersonalProfileGUI::class);
374  }
+ Here is the call graph for this function:

◆ jumpToSelectedItems()

ilDashboardGUI::jumpToSelectedItems ( )

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

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

362  : void
363  {
364  $viewSettings = new ilPDSelectedItemsBlockViewSettings($GLOBALS['DIC']->user(), $this->requested_view);
365  if ($viewSettings->enabledSelectedItems()) {
366  $this->ctrl->setParameter($this, 'view', $viewSettings->getSelectedItemsView());
367  }
368  $this->show();
369  }
$GLOBALS["DIC"]
Definition: wac.php:53
+ Here is the call graph for this function:

◆ jumpToSettings()

ilDashboardGUI::jumpToSettings ( )

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

References ILIAS\Repository\ctrl().

393  : void
394  {
395  $this->ctrl->redirectByClass(ilPersonalSettingsGUI::class);
396  }
+ Here is the call graph for this function:

◆ jumpToSkills()

ilDashboardGUI::jumpToSkills ( )

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

References ILIAS\Repository\ctrl().

452  : void
453  {
454  $this->ctrl->redirectByClass(ilPersonalSkillsGUI::class);
455  }
+ Here is the call graph for this function:

◆ jumpToWorkspace()

ilDashboardGUI::jumpToWorkspace ( )

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

References ILIAS\Repository\ctrl().

423  : void
424  {
425  $cmd = '';
426  if ($this->requested_dsh != '') {
427  $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'shr_id', $this->requested_dsh);
428  $cmd = 'share';
429  }
430 
431  if ($this->requested_wsp_id > 0) {
432  $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'wsp_id', $this->requested_wsp_id);
433  }
434 
435  if ($this->requested_gtp) {
436  $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'gtp', $this->requested_gtp);
437  }
438 
439  $this->ctrl->redirectByClass(ilPersonalWorkspaceGUI::class, $cmd);
440  }
+ Here is the call graph for this function:

◆ prepareContentView()

ilDashboardGUI::prepareContentView ( )

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

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

337  : void
338  {
339  $this->tpl->loadStandardTemplate();
340 
341  $this->tpl->setTitleIcon(ilUtil::getImagePath('standard/icon_pd.svg'));
342  $this->tpl->setTitle($this->lng->txt('personal_desktop'));
343  $this->tpl->setVariable('IMG_SPACE', ilUtil::getImagePath('media/spacer.png'));
344  }
static getImagePath(string $image_name, 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 490 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().

490  : string
491  {
492  switch ($view) {
494  return (new ilSelectedItemsBlockGUI())->getHTML();
496  return (new ilDashboardRecommendedContentGUI())->getHTML();
498  return (new ilMembershipBlockGUI())->getHTML();
500  return (new ilDashboardLearningSequenceGUI())->getHTML();
502  return (new ilStudyProgrammeDashboardViewGUI())->getHTML();
503  default:
504  return '';
505  }
506  }
+ Here is the caller graph for this function:

◆ setTabs()

ilDashboardGUI::setTabs ( )

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

References $help, and ilHelpGUI\setScreenIdComponent().

Referenced by executeCommand().

346  : void
347  {
348  $ilHelp = $this->help;
349 
350  $ilHelp->setScreenIdComponent('pd');
351  }
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 241 of file class.ilDashboardGUI.php.

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

Referenced by executeCommand(), and jumpToSelectedItems().

241  : void
242  {
244 
245  $this->tpl->setTitle($this->lng->txt("dash_dashboard"));
246  $this->tpl->setTitleIcon(ilUtil::getImagePath("standard/icon_dshs.svg"), $this->lng->txt("dash_dashboard"));
247 
248  $this->tpl->setVariable('IMG_SPACE', ilUtil::getImagePath('media/spacer.png'));
249 
250  $content = '';
251  if (ilDashboardPageGUI::isLanguageAvailable($this->user->getLanguage())) {
252  $content = (new ilDashboardPageGUI($this->user->getLanguage()))->showPage();
253  } elseif (ilDashboardPageGUI::isLanguageAvailable($this->lng->getDefaultLanguage())) {
254  $content = (new ilDashboardPageGUI($this->lng->getDefaultLanguage()))->showPage();
255  }
256  $content .= $this->getCenterColumnHTML();
257 
258  $this->tpl->setContent($content);
259  $this->tpl->setRightContent($this->getRightColumnHTML());
260  $this->tpl->printToStdout();
261  }
ilDashboardPageGUI: ilPageEditorGUI, ilEditClipboardGUI, ilMDEditorGUI ilDashboardPageGUI: ilAdminis...
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static preloadPDBlockSettings()
Preload pd info.
static isLanguageAvailable(string $lang)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toggleHelp()

ilDashboardGUI::toggleHelp ( )
protected

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

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

462  : void
463  {
464  if (ilSession::get('show_help_tool') == '1') {
465  ilSession::set('show_help_tool', '0');
466  } else {
467  ilSession::set('show_help_tool', '1');
468  }
469  $this->ctrl->redirect($this, 'show');
470  }
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 42 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.

◆ $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 44 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 43 of file class.ilDashboardGUI.php.

◆ CMD_JUMP_TO_MY_STAFF

const ilDashboardGUI::CMD_JUMP_TO_MY_STAFF = 'jumpToMyStaff'

Definition at line 39 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: