27 protected \ILIAS\DI\UIServices
$ui;
36 $this->
ctrl = $DIC->ctrl();
37 $this->
lng = $DIC->language();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
42 $this->wiki_id = $a_wiki_id;
52 "tpl.table_row_contributors.html",
56 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(),
"saveGrading"));
63 $this->
ui = $DIC->ui();
74 protected function fillRow(array $a_set): void
79 arsort($a_set[
"pages"]);
82 foreach ($a_set[
"pages"] as $page_id => $cnt) {
85 $this->tpl->setCurrentBlock(
"page");
86 $this->tpl->setVariable(
"PAGE",
$title);
87 $this->tpl->setVariable(
"CNT", $cnt);
88 $this->tpl->parseCurrentBlock();
105 $this->tpl->setVariable(
"AVATAR", $this->
ui->renderer()->render($avatar));
106 $this->tpl->setVariable(
108 htmlspecialchars($a_set[
"lastname"] .
", " . $a_set[
"firstname"])
110 $this->tpl->setVariable(
"USER_ID", $a_set[
"user_id"]);
113 $this->tpl->setVariable(
"TXT_LCOMMENT",
$lng->
txt(
"wiki_comment_for_learner"));
114 $this->tpl->setVariable(
116 "lcomment[" . $a_set[
"user_id"] .
"]" 120 $this->parent_obj->getObject()->getId()
122 $this->tpl->setVariable(
130 $this->tpl->setVariable(
"SEL_" . $status,
' selected="selected" ');
131 $this->tpl->setVariable(
"TXT_NOTGRADED",
$lng->
txt(
"wiki_notgraded"));
132 $this->tpl->setVariable(
"TXT_PASSED",
$lng->
txt(
"wiki_passed"));
133 $this->tpl->setVariable(
"TXT_FAILED",
$lng->
txt(
"wiki_failed"));
138 $this->tpl->setCurrentBlock(
"status_date");
139 $this->tpl->setVariable(
"TXT_LAST_CHANGE",
$lng->
txt(
"last_change"));
140 $this->tpl->setVariable(
144 $this->tpl->parseCurrentBlock();
151 $icon_rendered = $icons->renderIcon(
152 $icons->getImagePathCompleted(),
157 $icon_rendered = $icons->renderIcon(
158 $icons->getImagePathFailed(),
163 $icon_rendered = $icons->renderIcon(
164 $icons->getImagePathNotAttempted(),
170 $this->tpl->setVariable(
"ICON_STATUS", $icon_rendered);
173 $this->tpl->setVariable(
"TXT_MARK",
$lng->
txt(
"wiki_mark"));
174 $this->tpl->setVariable(
176 "mark[" . $a_set[
"user_id"] .
"]" 180 $this->tpl->setVariable(
static _lookupComment(int $a_usr_id, int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupStatusTime(int $a_obj_id, int $a_user_id)
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...
setFormAction(string $a_form_action, bool $a_multipart=false)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_wiki_id)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
static getInstance(int $variant=ilLPStatusIcons::ICON_VARIANT_DEFAULT, ?\ILIAS\UI\Renderer $renderer=null, ?\ILIAS\UI\Factory $factory=null)
static _getAvatar(int $a_usr_id)
static _lookupStatus(int $a_obj_id, int $a_user_id)
Lookup current success status (STATUS_NOT_GRADED|STATUS_PASSED|STATUS_FAILED)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
static getWikiContributors(int $a_wiki_id)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
static _lookupMark(int $a_usr_id, int $a_obj_id)
static lookupTitle(int $a_page_id)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setEnableHeader(bool $a_enableheader)