ILIAS  release_8 Revision v8.24
ilPortfolioRepositoryGUI Class Reference

Portfolio repository gui class. More...

+ Collaboration diagram for ilPortfolioRepositoryGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 setTabs ()
 

Protected Member Functions

 setLocator ()
 
 checkAccess (string $a_permission, ?int $a_portfolio_id=null)
 
 show ()
 
 getPortfolioList ()
 
 setOnline ()
 
 setOffline ()
 
 saveTitles ()
 
 confirmPortfolioDeletion ()
 
 deletePortfolios ()
 
 unsetDefault ()
 
 setDefaultConfirmation ()
 Confirm sharing when setting default. More...
 
 setDefaultGlobal ()
 
 setDefaultRegistered ()
 
 setDefault (int $a_prtf_id)
 
 showOtherFilter ()
 
 showOther (bool $a_load_data=true)
 
 applyShareFilter ()
 
 resetShareFilter ()
 

Protected Attributes

StandardGUIRequest $port_request
 
ilLanguage $lng
 
ilObjUser $user
 
ilCtrl $ctrl
 
ilGlobalTemplateInterface $tpl
 
ilTabsGUI $tabs
 
ilHelpGUI $help
 
ilLocatorGUI $locator
 
ilToolbarGUI $toolbar
 
ilSetting $settings
 
int $user_id
 
ilPortfolioAccessHandler $access_handler
 
ILIAS DI UIServices $ui
 

Detailed Description

Portfolio repository gui class.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om @ilCtrl_Calls ilPortfolioRepositoryGUI: ilObjPortfolioGUI, ilObjExerciseGUI

Definition at line 27 of file class.ilPortfolioRepositoryGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPortfolioRepositoryGUI::__construct ( )

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

44 {
45 global $DIC;
46
47 $this->lng = $DIC->language();
48 $this->user = $DIC->user();
49 $this->ctrl = $DIC->ctrl();
50 $this->tpl = $DIC["tpl"];
51 $this->tabs = $DIC->tabs();
52 $this->help = $DIC["ilHelp"];
53 $this->locator = $DIC["ilLocator"];
54 $this->toolbar = $DIC->toolbar();
55 $this->settings = $DIC->settings();
56 $this->ui = $DIC->ui();
57 $lng = $DIC->language();
58 $ilUser = $DIC->user();
59
60 $lng->loadLanguageModule("prtf");
61 $lng->loadLanguageModule("user");
62
63 $this->access_handler = new ilPortfolioAccessHandler();
64
65 $this->port_request = $DIC->portfolio()
66 ->internal()
67 ->gui()
68 ->standardRequest();
69
70 $this->user_id = $ilUser->getId();
71 }
loadLanguageModule(string $a_module)
Load language module.
Access handler for portfolio NOTE: This file needs to stay in the classes directory,...
global $DIC
Definition: feed.php:28
$ilUser
Definition: imgupload.php:34

References $DIC, $ilUser, $lng, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\locator(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyShareFilter()

ilPortfolioRepositoryGUI::applyShareFilter ( )
protected

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

578 : void
579 {
580 $tbl = new ilWorkspaceShareTableGUI($this, "showOther", $this->getWorkspaceAccess());
581 $tbl->resetOffset();
582 $tbl->writeFilterToSession();
583
584 $this->showOther();
585 }
Workspace share handler table GUI class.

◆ checkAccess()

ilPortfolioRepositoryGUI::checkAccess ( string  $a_permission,
?int  $a_portfolio_id = null 
)
protected

Definition at line 159 of file class.ilPortfolioRepositoryGUI.php.

162 : bool {
163 if ($a_portfolio_id) {
164 return $this->access_handler->checkAccess($a_permission, "", $a_portfolio_id);
165 }
166 // currently only object-based permissions
167 return true;
168 }

◆ confirmPortfolioDeletion()

ilPortfolioRepositoryGUI::confirmPortfolioDeletion ( )
protected

Definition at line 387 of file class.ilPortfolioRepositoryGUI.php.

387 : void
388 {
389 $ilCtrl = $this->ctrl;
392
393 $prtfs = $this->port_request->getPortfolioIds();
394
395 if (count($prtfs) === 0) {
396 $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
397 $ilCtrl->redirect($this, "show");
398 } else {
399 $cgui = new ilConfirmationGUI();
400 $cgui->setFormAction($ilCtrl->getFormAction($this));
401 $cgui->setHeaderText($lng->txt("prtf_sure_delete_portfolios"));
402 $cgui->setCancel($lng->txt("cancel"), "show");
403 $cgui->setConfirm($lng->txt("delete"), "deletePortfolios");
404
405 foreach ($prtfs as $id) {
406 $cgui->addItem("prtfs[]", $id, ilObjPortfolio::_lookupTitle($id));
407 }
408
409 $tpl->setContent($cgui->getHTML());
410 }
411 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupTitle(int $obj_id)
setContent(string $a_html)
Sets content for standard template.

References $id, $lng, $tpl, and ilObject\_lookupTitle().

+ Here is the call graph for this function:

◆ deletePortfolios()

ilPortfolioRepositoryGUI::deletePortfolios ( )
protected

Definition at line 413 of file class.ilPortfolioRepositoryGUI.php.

413 : void
414 {
416 $ilCtrl = $this->ctrl;
417
418 $port_ids = $this->port_request->getPortfolioIds();
419 foreach ($port_ids as $id) {
420 if ($this->checkAccess("write", $id)) {
421 $portfolio = new ilObjPortfolio($id, false);
422 if ($portfolio->getOwner() === $this->user_id) {
423 $this->access_handler->removePermission($id);
424 $portfolio->delete();
425 }
426 }
427 }
428 $this->tpl->setOnScreenMessage('success', $lng->txt("prtf_portfolio_deleted"), true);
429 $ilCtrl->redirect($this, "show");
430 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccess(string $a_permission, ?int $a_portfolio_id=null)

References $id, and $lng.

◆ executeCommand()

ilPortfolioRepositoryGUI::executeCommand ( )

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

73 : void
74 {
75 $ilCtrl = $this->ctrl;
78 $ilTabs = $this->tabs;
79
80 if (!$this->access_handler->editPortfolios()) {
81 throw new ilException($this->lng->txt("no_permission"));
82 }
83
84 $next_class = $ilCtrl->getNextClass($this);
85 $cmd = $ilCtrl->getCmd("show");
86
87 $tpl->setTitle($lng->txt("portfolio"));
89 ilUtil::getImagePath("icon_prtf.svg"),
90 $lng->txt("portfolio")
91 );
92
93 switch ($next_class) {
94 case "ilobjportfoliogui":
95
96 $gui = new ilObjPortfolioGUI($this->port_request->getPortfolioId());
97
98 if ($cmd !== "preview") {
99 $this->setLocator();
100
101 $exercise_back_ref_id = $this->port_request->getExcBackRefId();
102 if ($exercise_back_ref_id > 0) {
103 $ilTabs->setBack2Target($lng->txt("obj_exc"), ilLink::_getLink($exercise_back_ref_id));
104 } else {
105 $ilTabs->setBack2Target($lng->txt("prtf_tab_portfolios"), $ilCtrl->getLinkTarget($this, "show"));
106 }
107 }
108
109 $ilCtrl->forwardCommand($gui);
110 break;
111
112 default:
113 $this->setLocator();
114 $this->setTabs();
115 $this->$cmd();
116 break;
117 }
118 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Portfolio view gui class.
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.

References $ctrl, $lng, $tabs, $tpl, ilLink\_getLink(), ilUtil\getImagePath(), ILIAS\Repository\lng(), setLocator(), setTabs(), ilGlobalTemplateInterface\setTitle(), ilGlobalTemplateInterface\setTitleIcon(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getPortfolioList()

ilPortfolioRepositoryGUI::getPortfolioList ( )
protected

Definition at line 190 of file class.ilPortfolioRepositoryGUI.php.

190 : string
191 {
192 $ui = $this->ui;
193 $f = $ui->factory();
194 $renderer = $ui->renderer();
197
199
200 $shared_objects = $access_handler->getObjectsIShare(false);
201
202 $items = [];
203
204 foreach (ilObjPortfolio::getPortfoliosOfUser($this->user_id) as $port) {
205 // icon
206 $icon = $f->symbol()->icon()->custom(
207 ilUtil::getImagePath("icon_prtf.svg"),
208 $lng->txt("obj_portfolio"),
209 "medium"
210 );
211 if (!$port["is_online"] || !in_array($port["id"], $shared_objects)) {
212 $icon = $icon->withDisabled(true);
213 }
214
215 // actions
216 $prtf_path = array(get_class($this), "ilobjportfoliogui");
217 $action = [];
218 // ... preview
219 $ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", $port["id"]);
220 $preview_action = $ctrl->getLinkTargetByClass($prtf_path, "preview");
221 $action[] = $f->button()->shy($lng->txt("preview"), $preview_action);
222 // ... edit content
223 $action[] = $f->button()->shy(
224 $lng->txt("prtf_edit_content"),
225 $ctrl->getLinkTargetByClass($prtf_path, "view")
226 );
227 $ctrl->setParameter($this, "prt_id", $port["id"]);
228 if ($port["is_online"]) {
229 // ... set offline
230 $action[] = $f->button()->shy(
231 $lng->txt("prtf_set_offline"),
232 $ctrl->getLinkTarget($this, "setOffline")
233 );
234 } else {
235 // ... set online
236 $action[] = $f->button()->shy(
237 $lng->txt("prtf_set_online"),
238 $ctrl->getLinkTarget($this, "setOnline")
239 );
240 }
241 $ctrl->setParameter($this, "prt_id", "");
242 // ... settings
243 $action[] = $f->button()->shy(
244 $lng->txt("settings"),
245 $ctrl->getLinkTargetByClass($prtf_path, "edit")
246 );
247 // ... sharing
248 $action[] = $f->button()->shy(
249 $lng->txt("wsp_permissions"),
250 $ctrl->getLinkTargetByClass(array(get_class($this), "ilobjportfoliogui", "ilWorkspaceAccessGUI"), "share")
251 );
252 $ctrl->setParameterByClass("ilobjportfoliogui", "prt_id", "");
253
254 if ($port["is_online"]) {
255 if (!$port["is_default"]) {
256 // ... set as default
257 $ctrl->setParameter($this, "prt_id", $port["id"]);
258
259 $action[] = $f->button()->shy(
260 $lng->txt("prtf_set_as_default"),
261 $ctrl->getLinkTarget($this, "setDefaultConfirmation")
262 );
263
264 $ctrl->setParameter($this, "prt_id", "");
265 } else {
266 // ... unset as default
267 $action[] = $f->button()->shy(
268 $lng->txt("prtf_unset_as_default"),
269 $ctrl->getLinkTarget($this, "unsetDefault")
270 );
271 }
272 }
273 // ... delete
274 $ctrl->setParameter($this, "prtf", $port["id"]);
275 $action[] = $f->button()->shy(
276 $lng->txt("delete"),
277 $ctrl->getLinkTarget($this, "confirmPortfolioDeletion")
278 );
279 $ctrl->setParameter($this, "prtf", "");
280 $actions = $f->dropdown()->standard($action);
281
282
283 // properties
284 $props = [];
285 // ... online
286 $props[$lng->txt("online")] = ($port["is_online"])
287 ? $lng->txt("yes")
288 : $lng->txt("no");
289 //: "<span class='il_ItemAlertProperty'>" . $lng->txt("no") . "</span>";
290 // ... shared
291 $props[$lng->txt("wsp_status_shared")] = (in_array($port["id"], $shared_objects))
292 ? $lng->txt("yes")
293 : $lng->txt("no");
294 //: "<span class='il_ItemAlertProperty'>" . $lng->txt("no") . "</span>";
295 // ... default (my profile)
296 if ($port["is_default"]) {
297 $props[$lng->txt("prtf_default_portfolio")] = $lng->txt("yes");
298 }
299 // ... handed in
300 // exercise portfolio?
301 $exercises = ilPortfolioExerciseGUI::checkExercise($this->user_id, $port["id"], false, true);
302 foreach ($exercises as $exinfo) {
303 if ($exinfo["submitted"]) {
304 $props[$exinfo["ass_title"]] =
305 str_replace("$1", $exinfo["submitted_date"], $lng->txt("prtf_submission_on"));
306 } else {
307 $props[$exinfo["ass_title"]] = $lng->txt("prtf_no_submission");
308 //$props[$exinfo["ass_title"]] = "<span class='il_ItemAlertProperty'>" . $lng->txt("prtf_no_submission") . "</span>";
309 }
310 }
311
312
313 $items[] = $f->item()->standard($f->button()->shy($port["title"], $preview_action))
314 ->withActions($actions)
315 ->withProperties($props)
316 ->withLeadIcon($icon);
317 }
318
319
320 $std_list = $f->panel()->listing()->standard($lng->txt("prtf_portfolios"), array(
321 $f->item()->group("", $items)
322 ));
323
324 return $renderer->render($std_list);
325 }
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
@inheritDoc
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
static getPortfoliosOfUser(int $a_user_id)
Get portfolios of user.
getObjectsIShare(bool $a_online_only=true)
static checkExercise(int $a_user_id, int $a_obj_id, bool $a_add_submit=false, bool $as_array=false)
ilPortfolioAccessHandler $access_handler

References Vendor\Package\$f, $lng, ilPortfolioExerciseGUI\checkExercise(), ilUtil\getImagePath(), and ilObjPortfolio\getPortfoliosOfUser().

+ Here is the call graph for this function:

◆ resetShareFilter()

ilPortfolioRepositoryGUI::resetShareFilter ( )
protected

Definition at line 587 of file class.ilPortfolioRepositoryGUI.php.

587 : void
588 {
589 $tbl = new ilWorkspaceShareTableGUI($this, "showOther", $this->getWorkspaceAccess());
590 $tbl->resetOffset();
591 $tbl->resetFilter();
592
593 $this->showOther();
594 }

◆ saveTitles()

ilPortfolioRepositoryGUI::saveTitles ( )
protected

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

361 : void
362 {
363 $ilCtrl = $this->ctrl;
365
366 $titles = $this->port_request->getTitles();
367 $online = $this->port_request->getOnline();
368 foreach ($titles as $id => $title) {
369 if (trim($title) && $this->checkAccess("write", $id)) {
370 $portfolio = new ilObjPortfolio($id, false);
371 $portfolio->setTitle(ilUtil::stripSlashes($title));
372
373 if (in_array($id, $online)) {
374 $portfolio->setOnline(true);
375 } else {
376 $portfolio->setOnline(false);
377 }
378
379 $portfolio->update();
380 }
381 }
382
383 $this->tpl->setOnScreenMessage('success', $lng->txt("saved_successfully"), true);
384 $ilCtrl->redirect($this, "show");
385 }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References $id, $lng, and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ setDefault()

ilPortfolioRepositoryGUI::setDefault ( int  $a_prtf_id)
protected

Definition at line 525 of file class.ilPortfolioRepositoryGUI.php.

525 : void
526 {
527 $ilCtrl = $this->ctrl;
530
531 if ($a_prtf_id && $this->checkAccess("write")) {
532 // #12845
533 if ($this->access_handler->hasGlobalPermission($a_prtf_id)) {
534 $ilUser->setPref("public_profile", "g");
535 $ilUser->writePrefs();
536 } elseif ($this->access_handler->hasRegisteredPermission($a_prtf_id)) {
537 $ilUser->setPref("public_profile", "y");
538 $ilUser->writePrefs();
539 } else {
540 return;
541 }
542 ilObjPortfolio::setUserDefault($this->user_id, $a_prtf_id);
543 $this->tpl->setOnScreenMessage('success', $lng->txt("settings_saved"), true);
544 }
545 $ilCtrl->redirect($this, "show");
546 }
static setUserDefault(int $a_user_id, ?int $a_portfolio_id=null)
Set the user default portfolio.

References $ilUser, $lng, and ilObjPortfolio\setUserDefault().

+ Here is the call graph for this function:

◆ setDefaultConfirmation()

ilPortfolioRepositoryGUI::setDefaultConfirmation ( )
protected

Confirm sharing when setting default.

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

457 : void
458 {
459 $ilCtrl = $this->ctrl;
462 $ilTabs = $this->tabs;
464
465 $prtf_id = $this->port_request->getPortfolioId();
466
467 if ($prtf_id && $this->checkAccess("write")) {
468 // if already shared, no need to ask again
469 if ($this->access_handler->hasRegisteredPermission($prtf_id) ||
470 $this->access_handler->hasGlobalPermission($prtf_id)) {
471 $this->setDefault($prtf_id);
472 return;
473 }
474
475 $ilTabs->clearTargets();
476 $ilTabs->setBackTarget(
477 $lng->txt("cancel"),
478 $ilCtrl->getLinkTarget($this, "show")
479 );
480
481 $ilCtrl->setParameter($this, "prt_id", $prtf_id);
482
483 // #20310
484 if (!$ilSetting->get("enable_global_profiles")) {
485 $ilCtrl->redirect($this, "setDefaultRegistered");
486 }
487
488 $cgui = new ilConfirmationGUI();
489 $cgui->setFormAction($ilCtrl->getFormAction($this));
490 $cgui->setHeaderText($lng->txt("prtf_set_default_publish_confirmation"));
491 $cgui->setCancel($lng->txt("prtf_set_default_publish_global"), "setDefaultGlobal");
492 $cgui->setConfirm($lng->txt("prtf_set_default_publish_registered"), "setDefaultRegistered");
493 $tpl->setContent($cgui->getHTML());
494
495 return;
496 }
497
498 $ilCtrl->redirect($this, "show");
499 }
global $ilSetting
Definition: privfeed.php:17

References $ilSetting, $lng, ILIAS\LTI\ToolProvider\$settings, and $tpl.

◆ setDefaultGlobal()

ilPortfolioRepositoryGUI::setDefaultGlobal ( )
protected

Definition at line 501 of file class.ilPortfolioRepositoryGUI.php.

501 : void
502 {
503 $ilCtrl = $this->ctrl;
504
505 $prtf_id = $this->port_request->getPortfolioId();
506 if ($prtf_id && $this->checkAccess("write")) {
507 $this->access_handler->addPermission($prtf_id, ilWorkspaceAccessGUI::PERMISSION_ALL);
508 $this->setDefault($prtf_id);
509 }
510 $ilCtrl->redirect($this, "show");
511 }

References ilWorkspaceAccessGUI\PERMISSION_ALL.

◆ setDefaultRegistered()

ilPortfolioRepositoryGUI::setDefaultRegistered ( )
protected

Definition at line 513 of file class.ilPortfolioRepositoryGUI.php.

513 : void
514 {
515 $ilCtrl = $this->ctrl;
516
517 $prtf_id = $this->port_request->getPortfolioId();
518 if ($prtf_id && $this->checkAccess("write")) {
519 $this->access_handler->addPermission($prtf_id, ilWorkspaceAccessGUI::PERMISSION_REGISTERED);
520 $this->setDefault($prtf_id);
521 }
522 $ilCtrl->redirect($this, "show");
523 }

References ilWorkspaceAccessGUI\PERMISSION_REGISTERED.

◆ setLocator()

ilPortfolioRepositoryGUI::setLocator ( )
protected

Definition at line 144 of file class.ilPortfolioRepositoryGUI.php.

144 : void
145 {
146 $ilLocator = $this->locator;
148 $ilCtrl = $this->ctrl;
150
151 $ilLocator->addItem(
152 $lng->txt("portfolio"),
153 $ilCtrl->getLinkTarget($this, "show")
154 );
155
156 $tpl->setLocator();
157 }
setLocator()
Insert locator.

References $ctrl, $lng, $locator, $tpl, ilGlobalTemplateInterface\setLocator(), and ilLanguage\txt().

Referenced by executeCommand().

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

◆ setOffline()

ilPortfolioRepositoryGUI::setOffline ( )
protected

Definition at line 344 of file class.ilPortfolioRepositoryGUI.php.

344 : void
345 {
346 $ilCtrl = $this->ctrl;
348
349 $prt_id = $this->port_request->getPortfolioId();
350 if (ilObjPortfolio::_lookupOwner($prt_id) === $this->user_id) {
351 $portfolio = new ilObjPortfolio($prt_id, false);
352 $portfolio->setOnline(false);
353 $portfolio->update();
354 $this->tpl->setOnScreenMessage('success', $lng->txt("saved_successfully"), true);
355 $ilCtrl->redirect($this, "show");
356 }
357 $ilCtrl->redirect($this, "show");
358 }
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.

References $lng, and ilObject\_lookupOwner().

+ Here is the call graph for this function:

◆ setOnline()

ilPortfolioRepositoryGUI::setOnline ( )
protected

Definition at line 328 of file class.ilPortfolioRepositoryGUI.php.

328 : void
329 {
330 $ilCtrl = $this->ctrl;
332
333 $prt_id = $this->port_request->getPortfolioId();
334 if (ilObjPortfolio::_lookupOwner($prt_id) === $this->user_id) {
335 $portfolio = new ilObjPortfolio($prt_id, false);
336 $portfolio->setOnline(true);
337 $portfolio->update();
338 $this->tpl->setOnScreenMessage('success', $lng->txt("saved_successfully"), true);
339 $ilCtrl->redirect($this, "show");
340 }
341 $ilCtrl->redirect($this, "show");
342 }

References $lng, and ilObject\_lookupOwner().

+ Here is the call graph for this function:

◆ setTabs()

ilPortfolioRepositoryGUI::setTabs ( )

Definition at line 120 of file class.ilPortfolioRepositoryGUI.php.

120 : void
121 {
122 $ilTabs = $this->tabs;
124 $ilCtrl = $this->ctrl;
125 $ilHelp = $this->help;
126
127 $ilHelp->setScreenIdComponent("prtf");
128
129 $ilTabs->addTab(
130 "mypf",
131 $lng->txt("prtf_tab_portfolios"),
132 $ilCtrl->getLinkTarget($this)
133 );
134
135 $ilTabs->addTab(
136 "otpf",
137 $lng->txt("prtf_tab_other_users"),
138 $ilCtrl->getLinkTarget($this, "showotherFilter")
139 );
140
141 $ilTabs->activateTab("mypf");
142 }
setScreenIdComponent(string $a_comp)

References $ctrl, $help, $lng, $tabs, ilHelpGUI\setScreenIdComponent(), and ilLanguage\txt().

Referenced by executeCommand().

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

◆ show()

ilPortfolioRepositoryGUI::show ( )
protected

Definition at line 175 of file class.ilPortfolioRepositoryGUI.php.

175 : void
176 {
178 $ilToolbar = $this->toolbar;
179 $ilCtrl = $this->ctrl;
180
181 $button = ilLinkButton::getInstance();
182 $button->setCaption("prtf_add_portfolio");
183 $button->setUrl($ilCtrl->getLinkTargetByClass("ilObjPortfolioGUI", "create"));
184 $ilToolbar->addButtonInstance($button);
185 $portfolio_list = $this->getPortfolioList();
186
187 $tpl->setContent($portfolio_list);
188 }

References $tpl, and ilLinkButton\getInstance().

+ Here is the call graph for this function:

◆ showOther()

ilPortfolioRepositoryGUI::showOther ( bool  $a_load_data = true)
protected

Definition at line 566 of file class.ilPortfolioRepositoryGUI.php.

568 : void {
570 $ilTabs = $this->tabs;
571
572 $ilTabs->activateTab("otpf");
573
574 $tbl = new ilWorkspaceShareTableGUI($this, "showOther", $this->getWorkspaceAccess(), null, $a_load_data);
575 $tpl->setContent($tbl->getHTML());
576 }
activateTab(string $a_id)

◆ showOtherFilter()

ilPortfolioRepositoryGUI::showOtherFilter ( )
protected

Definition at line 561 of file class.ilPortfolioRepositoryGUI.php.

561 : void
562 {
563 $this->showOther(false);
564 }

◆ unsetDefault()

ilPortfolioRepositoryGUI::unsetDefault ( )
protected

Definition at line 437 of file class.ilPortfolioRepositoryGUI.php.

437 : void
438 {
439 $ilCtrl = $this->ctrl;
442
443 if ($this->checkAccess("write")) {
444 // #12845
445 $ilUser->setPref("public_profile", "n");
446 $ilUser->writePrefs();
447
448 ilObjPortfolio::setUserDefault($this->user_id);
449 $this->tpl->setOnScreenMessage('success', $lng->txt("prtf_unset_default_share_info"), true);
450 }
451 $ilCtrl->redirect($this, "show");
452 }

References $ilUser, $lng, and ilObjPortfolio\setUserDefault().

+ Here is the call graph for this function:

Field Documentation

◆ $access_handler

ilPortfolioAccessHandler ilPortfolioRepositoryGUI::$access_handler
protected

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

◆ $ctrl

ilCtrl ilPortfolioRepositoryGUI::$ctrl
protected

Definition at line 32 of file class.ilPortfolioRepositoryGUI.php.

Referenced by executeCommand(), setLocator(), and setTabs().

◆ $help

ilHelpGUI ilPortfolioRepositoryGUI::$help
protected

Definition at line 35 of file class.ilPortfolioRepositoryGUI.php.

Referenced by setTabs().

◆ $lng

ilLanguage ilPortfolioRepositoryGUI::$lng
protected

◆ $locator

ilLocatorGUI ilPortfolioRepositoryGUI::$locator
protected

Definition at line 36 of file class.ilPortfolioRepositoryGUI.php.

Referenced by setLocator().

◆ $port_request

StandardGUIRequest ilPortfolioRepositoryGUI::$port_request
protected

Definition at line 29 of file class.ilPortfolioRepositoryGUI.php.

◆ $settings

ilSetting ilPortfolioRepositoryGUI::$settings
protected

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

◆ $tabs

ilTabsGUI ilPortfolioRepositoryGUI::$tabs
protected

Definition at line 34 of file class.ilPortfolioRepositoryGUI.php.

Referenced by executeCommand(), and setTabs().

◆ $toolbar

ilToolbarGUI ilPortfolioRepositoryGUI::$toolbar
protected

Definition at line 37 of file class.ilPortfolioRepositoryGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilPortfolioRepositoryGUI::$tpl
protected

Definition at line 33 of file class.ilPortfolioRepositoryGUI.php.

Referenced by executeCommand(), and setLocator().

◆ $ui

ILIAS DI UIServices ilPortfolioRepositoryGUI::$ui
protected

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

◆ $user

ilObjUser ilPortfolioRepositoryGUI::$user
protected

Definition at line 31 of file class.ilPortfolioRepositoryGUI.php.

◆ $user_id

int ilPortfolioRepositoryGUI::$user_id
protected

Definition at line 39 of file class.ilPortfolioRepositoryGUI.php.


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