ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBadgeProfileGUI Class Reference

Class ilBadgeProfileGUI. More...

+ Collaboration diagram for ilBadgeProfileGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Data Fields

const BACKPACK_EMAIL = "badge_mozilla_bp"
 

Protected Member Functions

 setTabs ()
 
 getSubTabs (string $a_active)
 
 listBadges ()
 
 manageBadges ()
 
 applyFilter ()
 
 resetFilter ()
 
 getMultiSelection ()
 
 activate ()
 
 deactivate ()
 
 activateInCard ()
 
 deactivateInCard ()
 
 setBackpackSubTabs ()
 
 listBackpackGroups ()
 
 getBackpackMail ()
 
 initSettingsForm ()
 
 editSettings (ilPropertyFormGUI $a_form=null)
 
 saveSettings ()
 

Protected Attributes

ilBadgeGUIRequest $request
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilTabsGUI $tabs
 
ilObjUser $user
 
ilAccessHandler $access
 
ILIAS UI Factory $factory
 
ILIAS UI Renderer $renderer
 
BadgeNotificationPrefRepository $noti_repo
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilBadgeProfileGUI::__construct ( )

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

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().

42  {
43  global $DIC;
44 
45  $this->ctrl = $DIC->ctrl();
46  $this->lng = $DIC->language();
47  $this->tpl = $DIC["tpl"];
48  $this->tabs = $DIC->tabs();
49  $this->user = $DIC->user();
50  $this->access = $DIC->access();
51  $this->factory = $DIC->ui()->factory();
52  $this->renderer = $DIC->ui()->renderer();
53  $this->request = new ilBadgeGUIRequest(
54  $DIC->http(),
55  $DIC->refinery()
56  );
57 
58  $this->noti_repo = new BadgeNotificationPrefRepository();
59  }
Badge notification repository (using user preferences.
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ activate()

ilBadgeProfileGUI::activate ( )
protected

Definition at line 251 of file class.ilBadgeProfileGUI.php.

References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().

251  : void
252  {
253  $lng = $this->lng;
254  $ilCtrl = $this->ctrl;
255 
256  foreach ($this->getMultiSelection() as $ass) {
257  // already active?
258  if (!$ass->getPosition()) {
259  $ass->setPosition(999);
260  $ass->store();
261  }
262  }
263 
264  $this->tpl->setOnScreenMessage('success', $lng->txt("settings_saved"), true);
265  $ilCtrl->redirect($this, "manageBadges");
266  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ activateInCard()

ilBadgeProfileGUI::activateInCard ( )
protected

Definition at line 285 of file class.ilBadgeProfileGUI.php.

References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().

285  : void
286  {
287  $lng = $this->lng;
288  $ilCtrl = $this->ctrl;
289 
290  foreach ($this->getMultiSelection() as $ass) {
291  // already active?
292  if (!$ass->getPosition()) {
293  $ass->setPosition(999);
294  $ass->store();
295  }
296  }
297 
298  $this->tpl->setOnScreenMessage('success', $lng->txt("settings_saved"), true);
299  $ilCtrl->redirect($this, "listBadges");
300  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ applyFilter()

ilBadgeProfileGUI::applyFilter ( )
protected

Definition at line 211 of file class.ilBadgeProfileGUI.php.

References manageBadges().

211  : void
212  {
213  $tbl = new ilBadgePersonalTableGUI($this, "manageBadges");
214  $tbl->resetOffset();
215  $tbl->writeFilterToSession();
216  $this->manageBadges();
217  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ deactivate()

ilBadgeProfileGUI::deactivate ( )
protected

Definition at line 268 of file class.ilBadgeProfileGUI.php.

References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().

268  : void
269  {
270  $lng = $this->lng;
271  $ilCtrl = $this->ctrl;
272 
273  foreach ($this->getMultiSelection() as $ass) {
274  // already inactive?
275  if ($ass->getPosition()) {
276  $ass->setPosition(null);
277  $ass->store();
278  }
279  }
280 
281  $this->tpl->setOnScreenMessage('success', $lng->txt("settings_saved"), true);
282  $ilCtrl->redirect($this, "manageBadges");
283  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ deactivateInCard()

ilBadgeProfileGUI::deactivateInCard ( )
protected

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

References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().

302  : void
303  {
304  $lng = $this->lng;
305  $ilCtrl = $this->ctrl;
306 
307  foreach ($this->getMultiSelection() as $ass) {
308  // already inactive?
309  if ($ass->getPosition()) {
310  $ass->setPosition(null);
311  $ass->store();
312  }
313  }
314 
315  $this->tpl->setOnScreenMessage('success', $lng->txt("settings_saved"), true);
316  $ilCtrl->redirect($this, "listBadges");
317  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ editSettings()

ilBadgeProfileGUI::editSettings ( ilPropertyFormGUI  $a_form = null)
protected

Definition at line 427 of file class.ilBadgeProfileGUI.php.

References $ctrl, $tabs, and $tpl.

Referenced by saveSettings().

427  : void
428  {
429  $tpl = $this->tpl;
430  $ilCtrl = $this->ctrl;
431  $ilTabs = $this->tabs;
432 
433  $ilCtrl->redirect($this, "listBadges");
434  }
ilGlobalTemplateInterface $tpl
+ Here is the caller graph for this function:

◆ executeCommand()

ilBadgeProfileGUI::executeCommand ( )

Definition at line 62 of file class.ilBadgeProfileGUI.php.

References $ctrl, $lng, ilLanguage\loadLanguageModule(), and setTabs().

62  : void
63  {
64  $ilCtrl = $this->ctrl;
65  $lng = $this->lng;
66 
67  $lng->loadLanguageModule("badge");
68 
69  switch ($ilCtrl->getNextClass()) {
70  default:
71  $this->setTabs();
72  $cmd = $ilCtrl->getCmd("listBadges");
73  $this->$cmd();
74  break;
75  }
76  }
loadLanguageModule(string $a_module)
Load language module.
+ Here is the call graph for this function:

◆ getBackpackMail()

ilBadgeProfileGUI::getBackpackMail ( )
protected

Definition at line 396 of file class.ilBadgeProfileGUI.php.

References $ilUser, and $user.

Referenced by initSettingsForm(), listBackpackGroups(), and saveSettings().

396  : string
397  {
399 
400  $mail = $ilUser->getPref(self::BACKPACK_EMAIL);
401  if (!$mail) {
402  $mail = $ilUser->getEmail();
403  }
404  return $mail;
405  }
$ilUser
Definition: imgupload.php:34
+ Here is the caller graph for this function:

◆ getMultiSelection()

ilBadgeProfileGUI::getMultiSelection ( )
protected

Definition at line 227 of file class.ilBadgeProfileGUI.php.

References $ctrl, $id, $ilUser, $lng, $res, $user, and ilLanguage\txt().

Referenced by activate(), activateInCard(), deactivate(), and deactivateInCard().

227  : array
228  {
229  $lng = $this->lng;
230  $ilCtrl = $this->ctrl;
232 
233  $ids = $this->request->getBadgeIds();
234  if (count($ids) > 0) {
235  $res = array();
236  foreach ($ids as $id) {
237  $ass = new ilBadgeAssignment($id, $ilUser->getId());
238  if ($ass->getTimestamp()) {
239  $res[] = $ass;
240  }
241  }
242 
243  return $res;
244  }
245 
246  $this->tpl->setOnScreenMessage('failure', $lng->txt("select_one"), true);
247  $ilCtrl->redirect($this, "manageBadges");
248  return [];
249  }
$res
Definition: ltiservices.php:69
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ilUser
Definition: imgupload.php:34
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSubTabs()

ilBadgeProfileGUI::getSubTabs ( string  $a_active)
protected

Definition at line 85 of file class.ilBadgeProfileGUI.php.

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

Referenced by listBadges(), and manageBadges().

85  : void
86  {
87  $ilTabs = $this->tabs;
88  $lng = $this->lng;
89  $ilCtrl = $this->ctrl;
90 
91  $ilTabs->addTab(
92  "list",
93  $lng->txt("badge_profile_view"),
94  $ilCtrl->getLinkTarget($this, "listBadges")
95  );
96  $ilTabs->addTab(
97  "manage",
98  $lng->txt("badge_profile_manage"),
99  $ilCtrl->getLinkTarget($this, "manageBadges")
100  );
101  $ilTabs->activateTab($a_active);
102  }
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...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initSettingsForm()

ilBadgeProfileGUI::initSettingsForm ( )
protected

Definition at line 407 of file class.ilBadgeProfileGUI.php.

References $ctrl, $email, $lng, getBackpackMail(), and ilLanguage\txt().

Referenced by saveSettings().

408  {
409  $lng = $this->lng;
410  $ilCtrl = $this->ctrl;
411 
412  $form = new ilPropertyFormGUI();
413  $form->setFormAction($ilCtrl->getFormAction($this, "saveSettings"));
414  $form->setTitle($lng->txt("settings"));
415 
416  $email = new ilEMailInputGUI($lng->txt("badge_backpack_email"), "email");
417  // $email->setRequired(true);
418  $email->setInfo($lng->txt("badge_backpack_email_info"));
419  $email->setValue($this->getBackpackMail());
420  $form->addItem($email);
421 
422  $form->addCommandButton("saveSettings", $lng->txt("save"));
423 
424  return $form;
425  }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($orgName !==null) if($spconfig->hasValue('contacts')) $email
Definition: metadata.php:302
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listBackpackGroups()

ilBadgeProfileGUI::listBackpackGroups ( )
protected

Definition at line 342 of file class.ilBadgeProfileGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilDatePresentation\formatDate(), getBackpackMail(), setBackpackSubTabs(), ilGlobalTemplateInterface\setContent(), ilDatePresentation\setUseRelativeDates(), and ilLanguage\txt().

342  : void
343  {
344  $lng = $this->lng;
345  $tpl = $this->tpl;
346  $ilCtrl = $this->ctrl;
347  $ilTabs = $this->tabs;
348 
349  $this->setBackpackSubTabs();
350  $ilTabs->activateSubTab("backpack_badges");
351 
352  $this->tpl->setOnScreenMessage('info', $lng->txt("badge_backpack_gallery_info"));
353 
354  $bp = new ilBadgeBackpack($this->getBackpackMail());
355  $bp_groups = $bp->getGroups();
356 
357  if (!count($bp_groups)) {
358  $this->tpl->setOnScreenMessage('info', $lng->txt("badge_backpack_no_groups"));
359  return;
360  }
361 
362  $tmpl = new ilTemplate("tpl.badge_backpack.html", true, true, "Services/Badge");
363 
364  $tmpl->setVariable("BACKPACK_TITLE", $lng->txt("badge_backpack_list"));
365 
367 
368  foreach ($bp_groups as $group_id => $group) {
369  $bp_badges = $bp->getBadges($group_id);
370  if (count($bp_badges)) {
371  foreach ($bp_badges as $idx => $badge) {
372  $tmpl->setCurrentBlock("badge_bl");
373  $tmpl->setVariable("BADGE_TITLE", $badge["title"]);
374  $tmpl->setVariable("BADGE_DESC", $badge["description"]);
375  $tmpl->setVariable("BADGE_IMAGE", $badge["image_url"]);
376  $tmpl->setVariable("BADGE_CRITERIA", $badge["criteria_url"]);
377  $tmpl->setVariable("BADGE_ISSUER", $badge["issuer_name"]);
378  $tmpl->setVariable("BADGE_ISSUER_URL", $badge["issuer_url"]);
379  $tmpl->setVariable("BADGE_DATE", ilDatePresentation::formatDate($badge["issued_on"]));
380  $tmpl->parseCurrentBlock();
381  }
382  }
383 
384  $tmpl->setCurrentBlock("group_bl");
385  $tmpl->setVariable("GROUP_TITLE", $group["title"]);
386  $tmpl->parseCurrentBlock();
387  }
388 
389  $tpl->setContent($tmpl->get());
390  }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
setContent(string $a_html)
Sets content for standard template.
ilGlobalTemplateInterface $tpl
static setUseRelativeDates(bool $a_status)
set use relative dates
+ Here is the call graph for this function:

◆ listBadges()

ilBadgeProfileGUI::listBadges ( )
protected

Definition at line 104 of file class.ilBadgeProfileGUI.php.

References $data, $ilUser, $tpl, $url, $user, ilObject\_getAllReferences(), ilObject\_getIcon(), ilLink\_getLink(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilBadgeAssignment\getInstancesByUserId(), getSubTabs(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\setContent(), ilDatePresentation\setUseRelativeDates(), ilWACSignedPath\signFile(), and ilArrayUtil\sortArray().

104  : void
105  {
106  $tpl = $this->tpl;
108 
109  $this->getSubTabs("list");
110 
111  $data = array();
112 
113  // see ilBadgePersonalTableGUI::getItems()
114  foreach (ilBadgeAssignment::getInstancesByUserId($ilUser->getId()) as $ass) {
115  $badge = new ilBadge($ass->getBadgeId());
116 
117  $data[] = array(
118  "id" => $badge->getId(),
119  "title" => $badge->getTitle(),
120  "description" => $badge->getDescription(),
121  "image" => $badge->getImagePath(),
122  "name" => $badge->getImage(),
123  "issued_on" => $ass->getTimestamp(),
124  "active" => (bool) $ass->getPosition(),
125  "object" => $badge->getParentMeta(),
126  "renderer" => new ilBadgeRenderer($ass)
127  );
128  }
129 
130  // :TODO:
131  $data = ilArrayUtil::sortArray($data, "issued_on", "desc", true);
132 
133  $tmpl = new ilTemplate("tpl.badge_backpack.html", true, true, "Services/Badge");
134 
136 
137  $cards = array();
138  $badge_components = array();
139 
140  foreach ($data as $badge) {
141  $modal = $this->factory->modal()->roundtrip(
142  $badge["title"],
143  $this->factory->legacy($badge["renderer"]->renderModalContent())
144  )->withCancelButtonLabel("ok");
145  $image = $this->factory->image()->responsive(ilWACSignedPath::signFile($badge["image"]), $badge["name"])
146  ->withAction($modal->getShowSignal());
147 
148  $this->ctrl->setParameter($this, "badge_id", $badge["id"]);
149  $url = $this->ctrl->getLinkTarget($this, $badge["active"]
150  ? "deactivateInCard"
151  : "activateInCard");
152  $this->ctrl->setParameter($this, "badge_id", "");
153  $profile_button = $this->factory->button()->standard(
154  $this->lng->txt(!$badge["active"] ? "badge_add_to_profile" : "badge_remove_from_profile"),
155  $url
156  );
157 
158  if ($badge["object"]["type"] !== "bdga") {
159  $parent_icon = $this->factory->symbol()->icon()->custom(
160  ilObject::_getIcon((int) $badge["object"]["id"], "big", $badge["object"]["type"]),
161  $this->lng->txt("obj_" . $badge["object"]["type"]),
162  "medium"
163  );
164 
165  $ref_ids = ilObject::_getAllReferences($badge["object"]["id"]);
166  $parent_ref_id = array_shift($ref_ids);
167  if ($parent_ref_id && $this->access->checkAccess("read", "", $parent_ref_id)) {
168  $parent_link = $this->factory->link()->standard($badge["object"]["title"], ilLink::_getLink($parent_ref_id));
169  } else {
170  $parent_link = $this->factory->legacy($badge["object"]["title"]);
171  }
172 
173  $badge_sections = [
174  $this->factory->listing()->descriptive([
175  $this->lng->txt("object") => $this->factory->legacy(
176  $this->renderer->render($parent_icon) . $this->renderer->render($parent_link)
177  )
178  ]),
179  $profile_button
180  ];
181  } else {
182  $badge_sections = [$profile_button];
183  }
184 
185  $cards[] = $this->factory->card()->standard($badge["title"], $image)->withSections($badge_sections)
186  ->withTitleAction($modal->getShowSignal());
187 
188  $badge_components[] = $modal;
189  }
190 
191  $deck = $this->factory->deck($cards)->withSmallCardsSize();
192  $badge_components[] = $deck;
193 
194  $tmpl->setVariable("DECK", $this->renderer->render($badge_components));
195  $tpl->setContent($tmpl->get());
196 
197  $this->noti_repo->updateLastCheckedTimestamp();
198  }
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
static getInstancesByUserId(int $a_user_id)
getSubTabs(string $a_active)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getAllReferences(int $id)
get all reference ids for object ID
setContent(string $a_html)
Sets content for standard template.
ilGlobalTemplateInterface $tpl
$ilUser
Definition: imgupload.php:34
static signFile(string $path_to_file)
$url
static setUseRelativeDates(bool $a_status)
set use relative dates
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
+ Here is the call graph for this function:

◆ manageBadges()

ilBadgeProfileGUI::manageBadges ( )
protected

Definition at line 200 of file class.ilBadgeProfileGUI.php.

References $tpl, getSubTabs(), and ilGlobalTemplateInterface\setContent().

Referenced by applyFilter(), and resetFilter().

200  : void
201  {
202  $tpl = $this->tpl;
203 
204  $this->getSubTabs("manage");
205 
206  $tbl = new ilBadgePersonalTableGUI($this, "manageBadges");
207 
208  $tpl->setContent($tbl->getHTML());
209  }
getSubTabs(string $a_active)
setContent(string $a_html)
Sets content for standard template.
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetFilter()

ilBadgeProfileGUI::resetFilter ( )
protected

Definition at line 219 of file class.ilBadgeProfileGUI.php.

References manageBadges().

219  : void
220  {
221  $tbl = new ilBadgePersonalTableGUI($this, "manageBadges");
222  $tbl->resetOffset();
223  $tbl->resetFilter();
224  $this->manageBadges();
225  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ saveSettings()

ilBadgeProfileGUI::saveSettings ( )
protected

Definition at line 436 of file class.ilBadgeProfileGUI.php.

References $ctrl, $ilUser, $lng, $user, ilObjUser\_writePref(), ilBadgeAssignment\clearBadgeCache(), editSettings(), getBackpackMail(), initSettingsForm(), and ilLanguage\txt().

436  : void
437  {
439  $lng = $this->lng;
440  $ilCtrl = $this->ctrl;
441 
442  $form = $this->initSettingsForm();
443  if ($form->checkInput()) {
444  $new_email = $form->getInput("email");
445  $old_email = $this->getBackpackMail();
446 
447  ilObjUser::_writePref($ilUser->getId(), self::BACKPACK_EMAIL, $new_email);
448 
449  // if email was changed: delete badge files
450  if ($new_email != $old_email) {
452  }
453 
454  $this->tpl->setOnScreenMessage('success', $lng->txt("settings_saved"), true);
455  $ilCtrl->redirect($this, "editSettings");
456  }
457 
458  $form->setValuesByPost();
459  $this->editSettings($form);
460  }
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...
editSettings(ilPropertyFormGUI $a_form=null)
static clearBadgeCache(int $a_user_id)
$ilUser
Definition: imgupload.php:34
static _writePref(int $a_usr_id, string $a_keyword, string $a_value)
+ Here is the call graph for this function:

◆ setBackpackSubTabs()

ilBadgeProfileGUI::setBackpackSubTabs ( )
protected

Definition at line 321 of file class.ilBadgeProfileGUI.php.

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

Referenced by listBackpackGroups().

321  : void
322  {
323  $ilTabs = $this->tabs;
324  $lng = $this->lng;
325  $ilCtrl = $this->ctrl;
326 
327  $ilTabs->addSubTab(
328  "backpack_badges",
329  $lng->txt("obj_bdga"),
330  $ilCtrl->getLinkTarget($this, "listBackpackGroups")
331  );
332 
333  $ilTabs->addSubTab(
334  "backpack_settings",
335  $lng->txt("settings"),
336  $ilCtrl->getLinkTarget($this, "editSettings")
337  );
338 
339  $ilTabs->activateTab("backpack_badges");
340  }
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...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTabs()

ilBadgeProfileGUI::setTabs ( )
protected

Definition at line 78 of file class.ilBadgeProfileGUI.php.

References $ctrl, $lng, and $tabs.

Referenced by executeCommand().

78  : void
79  {
80  $ilTabs = $this->tabs;
81  $lng = $this->lng;
82  $ilCtrl = $this->ctrl;
83  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilBadgeProfileGUI::$access
protected

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

◆ $ctrl

◆ $factory

ILIAS UI Factory ilBadgeProfileGUI::$factory
protected

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

◆ $lng

◆ $noti_repo

BadgeNotificationPrefRepository ilBadgeProfileGUI::$noti_repo
protected

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

◆ $renderer

ILIAS UI Renderer ilBadgeProfileGUI::$renderer
protected

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

◆ $request

ilBadgeGUIRequest ilBadgeProfileGUI::$request
protected

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

◆ $tabs

ilTabsGUI ilBadgeProfileGUI::$tabs
protected

◆ $tpl

ilGlobalTemplateInterface ilBadgeProfileGUI::$tpl
protected

◆ $user

ilObjUser ilBadgeProfileGUI::$user
protected

◆ BACKPACK_EMAIL

const ilBadgeProfileGUI::BACKPACK_EMAIL = "badge_mozilla_bp"

Definition at line 28 of file class.ilBadgeProfileGUI.php.


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