24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
46 $lng = $DIC->language();
48 parent::__construct($a_parent_obj, $a_parent_cmd);
49 $this->wiki_id = $a_wiki_id;
59 "tpl.table_row_contributors.html",
77 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
94 include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
95 include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
98 arsort($a_set[
"pages"]);
101 foreach ($a_set[
"pages"] as $page_id => $cnt) {
103 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
105 $this->tpl->setCurrentBlock(
"page");
106 $this->tpl->setVariable(
"PAGE",
$title);
107 $this->tpl->setVariable(
"CNT", $cnt);
108 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
123 $img = ilObjUser::_getPersonalPicturePath($a_set[
"user_id"],
"xsmall");
124 $this->tpl->setVariable(
"IMG_USER",
$img);
125 $this->tpl->setVariable(
127 htmlspecialchars($a_set[
"lastname"] .
", " . $a_set[
"firstname"])
129 $this->tpl->setVariable(
"USER_ID", $a_set[
"user_id"]);
132 $this->tpl->setVariable(
"TXT_LCOMMENT",
$lng->txt(
"wiki_comment_for_learner"));
133 $this->tpl->setVariable(
135 "lcomment[" . $a_set[
"user_id"] .
"]" 139 $this->parent_obj->object->getId()
141 $this->tpl->setVariable(
149 $this->tpl->setVariable(
"SEL_" . $status,
' selected="selected" ');
150 $this->tpl->setVariable(
"TXT_NOTGRADED",
$lng->txt(
"wiki_notgraded"));
151 $this->tpl->setVariable(
"TXT_PASSED",
$lng->txt(
"wiki_passed"));
152 $this->tpl->setVariable(
"TXT_FAILED",
$lng->txt(
"wiki_failed"));
157 $this->tpl->setCurrentBlock(
"status_date");
158 $this->tpl->setVariable(
"TXT_LAST_CHANGE",
$lng->txt(
"last_change"));
159 $this->tpl->setVariable(
163 $this->tpl->parseCurrentBlock();
168 default: $pic =
"scorm/not_attempted.svg";
break;
171 $this->tpl->setVariable(
"ALT_STATUS",
$lng->txt(
"wiki_" . $status));
174 $this->tpl->setVariable(
"TXT_MARK",
$lng->txt(
"wiki_mark"));
175 $this->tpl->setVariable(
177 "mark[" . $a_set[
"user_id"] .
"]" 181 $this->tpl->setVariable(
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
TableGUI class for listing users that contributed to the wiki.
getContributors()
Get contributors of wiki.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
static getWikiContributors($a_wiki_id)
Get all contributors of wiki.
static _lookupStatus($a_obj_id, $a_user_id)
Lookup current success status (STATUS_NOT_GRADED|STATUS_PASSED|STATUS_FAILED)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static _lookupStatusTime($a_obj_id, $a_user_id)
Lookup last change in mark or success status.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
fillRow($a_set)
Standard Version of Fill Row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
static _lookupMark($a_usr_id, $a_obj_id)
static _lookupComment($a_usr_id, $a_obj_id)
__construct( $a_parent_obj, $a_parent_cmd="", $a_wiki_id)