ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ilDashboardGUI Class Reference

@ilCtrl_Calls ilDashboardGUI: ILIAS\User\Profile\PersonalProfileGUI @ilCtrl_Calls ilDashboardGUI: ilObjUserGUI, ilPDNotesGUI @ilCtrl_Calls ilDashboardGUI: ilColumnGUI, ilPDNewsGUI, ilCalendarPresentationGUI @ilCtrl_Calls ilDashboardGUI: ilMailSearchGUI, ilContactGUI @ilCtrl_Calls ilDashboardGUI: ilPersonalWorkspaceGUI, ILIAS\User\Settings\PersonalSettingsGUI @ilCtrl_Calls ilDashboardGUI: ilLocalUserPasswordSettingsGUI @ilCtrl_Calls ilDashboardGUI: ilPortfolioRepositoryGUI, ilObjChatroomGUI @ilCtrl_Calls ilDashboardGUI: ilMyStaffGUI @ilCtrl_Calls ilDashboardGUI: ilGroupUserActionsGUI, ilAchievementsGUI @ilCtrl_Calls ilDashboardGUI: ilPDMailBlockGUI @ilCtrl_Calls ilDashboardGUI: ilDashboardPageGUI @ilCtrl_Calls ilDashboardGUI: ilSelectedItemsBlockGUI, ilDashboardRecommendedContentGUI, ilMembershipBlockGUI, ilDashboardLearningSequenceGUI, ilStudyProgrammeDashboardViewGUI, ilObjStudyProgrammeGUI @ilCtrl_Calls ilDashboardGUI: ilObjIndividualAssessmentGUI More...

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

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 getStandardTemplates ()
 
 show ()
 
 getCenterColumnHTML ()
 
 getRightColumnHTML ()
 
 prepareContentView ()
 
 setTabs ()
 
 displayHeader ()
 

Data Fields

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

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

 jumpToMemberships ()
 
 jumpToSelectedItems ()
 
 jumpToProfile ()
 
 jumpToPortfolio ()
 
 jumpToSettings ()
 
 jumpToNews ()
 
 jumpToCalendar ()
 
 jumpToWorkspace ()
 
 jumpToMyStaff ()
 
 jumpToBadges ()
 
 jumpToSkills ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDashboardGUI::__construct ( )

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

60 {
61 global $DIC;
62
63 $this->tool_context = $DIC->globalScreen()->tool()->context();
64 $this->user = $DIC->user();
65 $this->settings = $DIC->settings();
66 $this->help = $DIC->help();
67 $this->tpl = $DIC->ui()->mainTemplate();
68 $this->lng = $DIC->language();
69 $this->ctrl = $DIC->ctrl();
70
71 if ($this->user->getId() === ANONYMOUS_USER_ID) {
72 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('msg_not_available_for_anon'), true);
73 $DIC->ctrl()->redirectToURL('login.php?cmd=force_login');
74 }
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:31
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ displayHeader()

ilDashboardGUI::displayHeader ( )

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

465 : void
466 {
467 $this->tpl->setTitle($this->lng->txt('dash_dashboard'));
468 }

References ILIAS\Repository\lng().

Referenced by executeCommand().

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

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

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

+ Here is the call graph for this function:

◆ getCenterColumnHTML()

ilDashboardGUI::getCenterColumnHTML ( )

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

271 : string
272 {
273 $ilCtrl = $this->ctrl;
274
275 $html = '';
276 $column_gui = new ilColumnGUI('pd', IL_COL_CENTER);
277
278 if ($ilCtrl->getNextClass() == 'ilcolumngui' &&
279 $column_gui->getCmdSide() == IL_COL_CENTER) {
280 $html = $ilCtrl->forwardCommand($column_gui);
281 } else {
282 if (!$ilCtrl->isAsynch()) {
283 if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) {
284 if ($column_gui->getCmdSide() == IL_COL_RIGHT) {
285 $column_gui = new ilColumnGUI('pd', IL_COL_RIGHT);
286 $html = $ilCtrl->forwardCommand($column_gui);
287 }
288 if ($column_gui->getCmdSide() == IL_COL_LEFT) {
289 $column_gui = new ilColumnGUI('pd', IL_COL_LEFT);
290 $html = $ilCtrl->forwardCommand($column_gui);
291 }
292 } else {
293 $html = '';
294
295 $uip = new ilUIHookProcessor(
296 'components/ILIAS/Dashboard',
297 'center_column',
298 ['personal_desktop_gui' => $this]
299 );
300 if (!$uip->replaced()) {
301 $html = $this->getMainContent();
302 }
303 $html = $uip->getHTML($html);
304 }
305 }
306 }
307 return $html;
308 }
const IL_SCREEN_SIDE
const IL_COL_RIGHT
const IL_COL_CENTER
const IL_COL_LEFT
readonly ilCtrl $ctrl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

Referenced by show().

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

◆ getMainContent()

ilDashboardGUI::getMainContent ( )
protected

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

480 : string
481 {
482 $html = '';
483 $tpl = new ilTemplate('tpl.dashboard.html', true, true, 'components/ILIAS/Dashboard');
485
486 foreach ($settings->getViewPositions() as $view_position) {
487 if ($settings->isViewEnabled($view_position)) {
488 $html .= $this->renderView($view_position);
489 }
490 }
491
492
493 $tpl->setVariable('CONTENT', $html);
494
495 return $tpl->get();
496 }
readonly ilGlobalTemplateInterface $tpl
special template class to simplify handling of ITX/PEAR
setVariable(string $variable, $value='')
Sets the given variable to the given value.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.

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

Referenced by getCenterColumnHTML().

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

◆ getRightColumnHTML()

ilDashboardGUI::getRightColumnHTML ( )

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

310 : string
311 {
312 $ilCtrl = $this->ctrl;
313
314 $html = '';
315
316 $column_gui = new ilColumnGUI('pd', IL_COL_RIGHT);
317
318 if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
319 return '';
320 }
321
322 if ($ilCtrl->getNextClass() == 'ilcolumngui' &&
323 $column_gui->getCmdSide() == IL_COL_RIGHT &&
324 $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
325 $html = $ilCtrl->forwardCommand($column_gui);
326 } else {
327 if (!$ilCtrl->isAsynch()) {
328 $html = '';
329
330 $uip = new ilUIHookProcessor(
331 'components/ILIAS/Dashboard',
332 'right_column',
333 ['personal_desktop_gui' => $this]
334 );
335 if (!$uip->replaced()) {
336 $html = $ilCtrl->getHTML($column_gui);
337 }
338 $html = $uip->getHTML($html);
339 }
340 }
341
342 return $html;
343 }
const IL_SCREEN_FULL

References $ctrl, IL_COL_RIGHT, IL_SCREEN_FULL, and IL_SCREEN_SIDE.

Referenced by show().

+ Here is the caller graph for this function:

◆ getStandardTemplates()

ilDashboardGUI::getStandardTemplates ( )

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

244 : void
245 {
246 $this->tpl->loadStandardTemplate();
247 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ jumpToBadges()

ilDashboardGUI::jumpToBadges ( )
private

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

455 : void
456 {
457 $this->ctrl->redirectByClass([ilAchievementsGUI::class, ilBadgeProfileGUI::class]);
458 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToCalendar()

ilDashboardGUI::jumpToCalendar ( )
private

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

411 : void
412 {
413 global $DIC;
414 $request = $DIC->http()->request();
415
416 $query_params = $request->getQueryParams();
417
418 if (array_key_exists('cal_view', $query_params) && $query_params['cal_view']) {
419 $cal_view = $query_params['cal_view'];
420 $this->ctrl->setParameter($this, 'cal_view', $cal_view);
421 }
422
423 if (!empty($query_params['cal_agenda_per'])) {
424 $cal_period = $query_params['cal_agenda_per'];
425 $this->ctrl->setParameter($this, 'cal_agenda_per', $cal_period);
426 }
427
428 $this->ctrl->redirectByClass(ilCalendarPresentationGUI::class);
429 }

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

+ Here is the call graph for this function:

◆ jumpToMemberships()

ilDashboardGUI::jumpToMemberships ( )
private

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

361 : void
362 {
363 $viewSettings = new ilPDSelectedItemsBlockViewSettings($this->user, $this->requested_view);
364 if ($viewSettings->enabledMemberships()) {
365 $this->ctrl->setParameter($this, 'view', $viewSettings->getMembershipsView());
366 }
367 $this->ctrl->redirect($this, 'show');
368 }

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

+ Here is the call graph for this function:

◆ jumpToMyStaff()

ilDashboardGUI::jumpToMyStaff ( )
private

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

450 : void
451 {
452 $this->ctrl->redirectByClass(ilMyStaffGUI::class);
453 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToNews()

ilDashboardGUI::jumpToNews ( )
private

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

406 : void
407 {
408 $this->ctrl->redirectByClass(ilPDNewsGUI::class);
409 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToPortfolio()

ilDashboardGUI::jumpToPortfolio ( )
private

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

384 : void
385 {
386 $cmd = '';
387 if ($this->requested_dsh != '') {
388 $this->ctrl->setParameterByClass(ilPortfolioRepositoryGUI::class, 'shr_id', $this->requested_dsh);
389 $cmd = 'showOther';
390 }
391
392 if ($this->requested_prt_id > 0) {
393 $this->ctrl->setParameterByClass(ilObjPortfolioGUI::class, 'prt_id', $this->requested_prt_id);
394 $this->ctrl->setParameterByClass(ilObjPortfolioGUI::class, 'gtp', $this->requested_gtp);
395 $this->ctrl->redirectByClass([ilPortfolioRepositoryGUI::class, ilObjPortfolioGUI::class], 'preview');
396 } else {
397 $this->ctrl->redirectByClass(ilPortfolioRepositoryGUI::class, $cmd);
398 }
399 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToProfile()

ilDashboardGUI::jumpToProfile ( )
private

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

379 : void
380 {
381 $this->ctrl->redirectByClass([self::class, PersonalProfileGUI::class]);
382 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToSelectedItems()

ilDashboardGUI::jumpToSelectedItems ( )
private

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

370 : void
371 {
372 $viewSettings = new ilPDSelectedItemsBlockViewSettings($this->user, $this->requested_view);
373 if ($viewSettings->enabledSelectedItems()) {
374 $this->ctrl->setParameter($this, 'view', $viewSettings->getSelectedItemsView());
375 }
376 $this->show();
377 }

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

+ Here is the call graph for this function:

◆ jumpToSettings()

ilDashboardGUI::jumpToSettings ( )
private

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

401 : void
402 {
403 $this->ctrl->redirectByClass(PersonalSettingsGUI::class);
404 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToSkills()

ilDashboardGUI::jumpToSkills ( )
private

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

460 : void
461 {
462 $this->ctrl->redirectByClass(ilPersonalSkillsGUI::class);
463 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ jumpToWorkspace()

ilDashboardGUI::jumpToWorkspace ( )
private

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

431 : void
432 {
433 $cmd = '';
434 if ($this->requested_dsh != '') {
435 $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'shr_id', $this->requested_dsh);
436 $cmd = 'share';
437 }
438
439 if ($this->requested_wsp_id > 0) {
440 $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'wsp_id', $this->requested_wsp_id);
441 }
442
443 if ($this->requested_gtp) {
444 $this->ctrl->setParameterByClass(ilPersonalWorkspaceGUI::class, 'gtp', $this->requested_gtp);
445 }
446
447 $this->ctrl->redirectByClass(ilPersonalWorkspaceGUI::class, $cmd);
448 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ prepareContentView()

ilDashboardGUI::prepareContentView ( )

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

345 : void
346 {
347 $this->tpl->loadStandardTemplate();
348
349 $this->tpl->setTitleIcon(ilUtil::getImagePath('standard/icon_pd.svg'));
350 $this->tpl->setTitle($this->lng->txt('personal_desktop'));
351 $this->tpl->setVariable('IMG_SPACE', ilUtil::getImagePath('media/spacer.png'));
352 }
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

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

+ Here is the call graph for this function:

◆ renderView()

ilDashboardGUI::renderView ( int  $view)
protected

Definition at line 498 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().

+ Here is the caller graph for this function:

◆ setTabs()

ilDashboardGUI::setTabs ( )

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

354 : void
355 {
356 $ilHelp = $this->help;
357
358 $ilHelp->setScreenIdComponent('pd');
359 }
readonly ilHelpGUI $help
setScreenIdComponent(string $a_comp)

References $help, and ilHelpGUI\setScreenIdComponent().

Referenced by executeCommand().

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

◆ show()

ilDashboardGUI::show ( )

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

249 : void
250 {
252
253 $this->tpl->setTitle($this->lng->txt("dash_dashboard"));
254 $this->tpl->setTitleIcon(ilUtil::getImagePath("standard/icon_dshs.svg"), $this->lng->txt("dash_dashboard"));
255
256 $this->tpl->setVariable('IMG_SPACE', ilUtil::getImagePath('media/spacer.png'));
257
258 $content = '';
259 if (ilDashboardPageGUI::isLanguageAvailable($this->user->getLanguage())) {
260 $content = (new ilDashboardPageGUI($this->user->getLanguage()))->showPage();
261 } elseif (ilDashboardPageGUI::isLanguageAvailable($this->lng->getDefaultLanguage())) {
262 $content = (new ilDashboardPageGUI($this->lng->getDefaultLanguage()))->showPage();
263 }
264 $content .= $this->getCenterColumnHTML();
265
266 $this->tpl->setContent($content);
267 $this->tpl->setRightContent($this->getRightColumnHTML());
268 $this->tpl->printToStdout();
269 }
static preloadPDBlockSettings()
Preload pd info.
@ilCtrl_Calls ilDashboardPageGUI: ilPageEditorGUI, ilEditClipboardGUI, ilMDEditorGUI @ilCtrl_isCalled...
static isLanguageAvailable(string $lang)

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

Referenced by executeCommand(), and jumpToSelectedItems().

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

◆ toggleHelp()

ilDashboardGUI::toggleHelp ( )
protected

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

470 : void
471 {
472 if (ilSession::get('show_help_tool') == '1') {
473 ilSession::set('show_help_tool', '0');
474 } else {
475 ilSession::set('show_help_tool', '1');
476 }
477 $this->ctrl->redirect($this, 'show');
478 }
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.

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

+ Here is the call graph for this function:

Field Documentation

◆ $cmdClass

string ilDashboardGUI::$cmdClass = ''

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

Referenced by executeCommand().

◆ $ctrl

readonly ilCtrl ilDashboardGUI::$ctrl
protected

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

Referenced by getCenterColumnHTML(), and getRightColumnHTML().

◆ $help

readonly ilHelpGUI ilDashboardGUI::$help
protected

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

Referenced by setTabs().

◆ $lng

readonly ilLanguage ilDashboardGUI::$lng

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

◆ $requested_dsh

string ilDashboardGUI::$requested_dsh
protected

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

◆ $requested_gtp

int ilDashboardGUI::$requested_gtp
protected

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

◆ $requested_prt_id

int ilDashboardGUI::$requested_prt_id
protected

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

◆ $requested_view

int ilDashboardGUI::$requested_view
protected

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

◆ $requested_wsp_id

int ilDashboardGUI::$requested_wsp_id
protected

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

◆ $settings

readonly ilSetting ilDashboardGUI::$settings
protected

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

Referenced by executeCommand(), and getMainContent().

◆ $tool_context

readonly ContextServices ilDashboardGUI::$tool_context
protected

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

Referenced by executeCommand().

◆ $tpl

readonly ilGlobalTemplateInterface ilDashboardGUI::$tpl

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

Referenced by getMainContent().

◆ $user

readonly ilObjUser ilDashboardGUI::$user
protected

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

◆ CMD_JUMP_TO_MY_STAFF

const ilDashboardGUI::CMD_JUMP_TO_MY_STAFF = 'jumpToMyStaff'

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