Class ilBadgeProfileGUI.
More...
◆ __construct()
| ilBadgeProfileGUI::__construct |
( |
| ) |
|
◆ activate()
| ilBadgeProfileGUI::activate |
( |
| ) |
|
|
protected |
Definition at line 160 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().
167 if (!$ass->getPosition()) {
168 $ass->setPosition(999);
173 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"position_updated"),
true);
174 $ilCtrl->
redirect($this,
"manageBadges");
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)
◆ activateInCard()
| ilBadgeProfileGUI::activateInCard |
( |
| ) |
|
|
protected |
Definition at line 194 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().
201 if (!$ass->getPosition()) {
202 $ass->setPosition(999);
207 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"position_updated"),
true);
208 $ilCtrl->
redirect($this,
"listBadges");
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)
◆ deactivate()
| ilBadgeProfileGUI::deactivate |
( |
| ) |
|
|
protected |
Definition at line 177 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().
184 if ($ass->getPosition()) {
185 $ass->setPosition(null);
190 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"position_updated"),
true);
191 $ilCtrl->
redirect($this,
"manageBadges");
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)
◆ deactivateInCard()
| ilBadgeProfileGUI::deactivateInCard |
( |
| ) |
|
|
protected |
Definition at line 211 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, getMultiSelection(), ilCtrl\redirect(), and ilLanguage\txt().
218 if ($ass->getPosition()) {
219 $ass->setPosition(null);
224 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"position_updated"),
true);
225 $ilCtrl->
redirect($this,
"listBadges");
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)
◆ editSettings()
◆ executeCommand()
| ilBadgeProfileGUI::executeCommand |
( |
| ) |
|
◆ getBackpackMail()
| ilBadgeProfileGUI::getBackpackMail |
( |
| ) |
|
|
protected |
◆ getMultiSelection()
| ilBadgeProfileGUI::getMultiSelection |
( |
| ) |
|
|
protected |
Definition at line 136 of file class.ilBadgeProfileGUI.php.
References $ctrl, $id, $lng, $res, $user, and ilLanguage\txt().
Referenced by activate(), activateInCard(), deactivate(), and deactivateInCard().
142 $ids = $this->request->getBadgeIds();
143 if (count($ids) > 0) {
145 foreach ($ids as
$id) {
147 if ($ass->getTimestamp()) {
155 $this->tpl->setOnScreenMessage(
'failure',
$lng->
txt(
"select_one"),
true);
156 $ilCtrl->redirect($this,
"manageBadges");
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...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ getSubTabs()
| ilBadgeProfileGUI::getSubTabs |
( |
string |
$a_active | ) |
|
|
protected |
Definition at line 95 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, $tabs, and ilLanguage\txt().
103 $lng->
txt(
"badge_profile_view"),
104 $ilCtrl->getLinkTarget($this,
"listBadges")
108 $lng->
txt(
"badge_profile_manage"),
109 $ilCtrl->getLinkTarget($this,
"manageBadges")
111 $ilTabs->activateTab($a_active);
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...
◆ initSettingsForm()
| ilBadgeProfileGUI::initSettingsForm |
( |
| ) |
|
|
protected |
◆ listBackpackGroups()
| ilBadgeProfileGUI::listBackpackGroups |
( |
| ) |
|
|
protected |
Definition at line 249 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, $tabs, $tpl, ilDatePresentation\formatDate(), getBackpackMail(), setBackpackSubTabs(), ilGlobalTemplateInterface\setContent(), ilDatePresentation\setUseRelativeDates(), and ilLanguage\txt().
257 $ilTabs->activateSubTab(
"backpack_badges");
259 $this->tpl->setOnScreenMessage(
'info',
$lng->
txt(
"badge_backpack_gallery_info"));
262 $bp_groups = $bp->getGroups();
264 if (!count($bp_groups)) {
265 $this->tpl->setOnScreenMessage(
'info',
$lng->
txt(
"badge_backpack_no_groups"));
269 $tmpl =
new ilTemplate(
"tpl.badge_backpack.html",
true,
true,
"Services/Badge");
271 $tmpl->setVariable(
"BACKPACK_TITLE",
$lng->
txt(
"badge_backpack_list"));
275 foreach ($bp_groups as $group_id => $group) {
276 $bp_badges = $bp->getBadges($group_id);
277 if (count($bp_badges)) {
278 foreach ($bp_badges as $idx => $badge) {
279 $tmpl->setCurrentBlock(
"badge_bl");
280 $tmpl->setVariable(
"BADGE_TITLE", $badge[
"title"]);
281 $tmpl->setVariable(
"BADGE_DESC", $badge[
"description"]);
282 $tmpl->setVariable(
"BADGE_IMAGE", $badge[
"image_url"]);
283 $tmpl->setVariable(
"BADGE_CRITERIA", $badge[
"criteria_url"]);
284 $tmpl->setVariable(
"BADGE_ISSUER", $badge[
"issuer_name"]);
285 $tmpl->setVariable(
"BADGE_ISSUER_URL", $badge[
"issuer_url"]);
287 $tmpl->parseCurrentBlock();
291 $tmpl->setCurrentBlock(
"group_bl");
292 $tmpl->setVariable(
"GROUP_TITLE", $group[
"title"]);
293 $tmpl->parseCurrentBlock();
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
◆ listBadges()
| ilBadgeProfileGUI::listBadges |
( |
| ) |
|
|
protected |
◆ manageBadges()
| ilBadgeProfileGUI::manageBadges |
( |
| ) |
|
|
protected |
◆ renderDeck()
| ilBadgeProfileGUI::renderDeck |
( |
string |
$deck | ) |
|
|
private |
◆ saveSettings()
| ilBadgeProfileGUI::saveSettings |
( |
| ) |
|
|
protected |
Definition at line 343 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, $user, ilObjUser\_writePref(), ilBadgeAssignment\clearBadgeCache(), editSettings(), getBackpackMail(), initSettingsForm(), and ilLanguage\txt().
350 if ($form->checkInput()) {
351 $new_email = $form->getInput(
"email");
357 if ($new_email != $old_email) {
361 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"settings_saved"),
true);
362 $ilCtrl->redirect($this,
"editSettings");
365 $form->setValuesByPost();
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)
static _writePref(int $a_usr_id, string $a_keyword, string $a_value)
◆ setBackpackSubTabs()
| ilBadgeProfileGUI::setBackpackSubTabs |
( |
| ) |
|
|
protected |
Definition at line 228 of file class.ilBadgeProfileGUI.php.
References $ctrl, $lng, $tabs, and ilLanguage\txt().
Referenced by listBackpackGroups().
237 $ilCtrl->getLinkTarget($this,
"listBackpackGroups")
243 $ilCtrl->getLinkTarget($this,
"editSettings")
246 $ilTabs->activateTab(
"backpack_badges");
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...
◆ setTabs()
| ilBadgeProfileGUI::setTabs |
( |
| ) |
|
|
protected |
◆ $access
◆ $ctrl
| ilCtrl ilBadgeProfileGUI::$ctrl |
|
protected |
Definition at line 34 of file class.ilBadgeProfileGUI.php.
Referenced by activate(), activateInCard(), deactivate(), deactivateInCard(), editSettings(), executeCommand(), getMultiSelection(), getSubTabs(), initSettingsForm(), listBackpackGroups(), saveSettings(), setBackpackSubTabs(), and setTabs().
◆ $factory
| ILIAS UI Factory ilBadgeProfileGUI::$factory |
|
protected |
◆ $lng
Definition at line 35 of file class.ilBadgeProfileGUI.php.
Referenced by activate(), activateInCard(), deactivate(), deactivateInCard(), executeCommand(), getMultiSelection(), getSubTabs(), initSettingsForm(), listBackpackGroups(), saveSettings(), setBackpackSubTabs(), and setTabs().
◆ $noti_repo
◆ $renderer
| ILIAS UI Renderer ilBadgeProfileGUI::$renderer |
|
protected |
◆ $request
◆ $tabs
◆ $tile_view
| readonly TileView ilBadgeProfileGUI::$tile_view |
|
private |
◆ $tpl
◆ $user
◆ BACKPACK_EMAIL
| final const ilBadgeProfileGUI::BACKPACK_EMAIL = "badge_mozilla_bp" |
The documentation for this class was generated from the following file: