24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
42 parent::__construct($a_parent_obj, $a_parent_cmd);
43 $this->wiki_id = $a_wiki_id;
47 $this->
addColumn($lng->txt(
"wiki_contributor"),
"",
"33%");
48 $this->
addColumn($lng->txt(
"wiki_page_changes"),
"",
"33%");
49 $this->
addColumn($lng->txt(
"wiki_grading"),
"",
"33%");
55 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(),
"saveGrading"));
61 $this->
setTitle($lng->txt(
"wiki_contributors"));
69 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
84 include_once(
"./Services/Tracking/classes/class.ilLPMarks.php");
85 include_once(
"./Modules/Wiki/classes/class.ilWikiContributor.php");
89 arsort($a_set[
"pages"]);
92 foreach ($a_set[
"pages"] as $page_id => $cnt)
96 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
98 $this->tpl->setCurrentBlock(
"page");
99 $this->tpl->setVariable(
"PAGE",
$title);
100 $this->tpl->setVariable(
"CNT", $cnt);
101 $this->tpl->parseCurrentBlock();
105 $this->tpl->setVariable(
"TXT_LINKED_USER",
106 $user[
"lastname"].
", ".$user[
"firstname"].
" [".$login.
"]");
115 $this->tpl->setVariable(
"IMG_USER",
$img);
116 $this->tpl->setVariable(
"TXT_NAME",
117 htmlspecialchars($a_set[
"lastname"].
", ".$a_set[
"firstname"]));
118 $this->tpl->setVariable(
"USER_ID", $a_set[
"user_id"]);
121 $this->tpl->setVariable(
"TXT_LCOMMENT", $lng->txt(
"wiki_comment_for_learner"));
122 $this->tpl->setVariable(
"NAME_LCOMMENT",
123 "lcomment[".$a_set[
"user_id"].
"]");
125 $this->parent_obj->object->getId());
126 $this->tpl->setVariable(
"VAL_LCOMMENT",
132 $this->tpl->setVariable(
"SEL_".$status,
' selected="selected" ');
133 $this->tpl->setVariable(
"TXT_NOTGRADED", $lng->txt(
"wiki_notgraded"));
134 $this->tpl->setVariable(
"TXT_PASSED", $lng->txt(
"wiki_passed"));
135 $this->tpl->setVariable(
"TXT_FAILED", $lng->txt(
"wiki_failed"));
141 $this->tpl->setCurrentBlock(
"status_date");
142 $this->tpl->setVariable(
"TXT_LAST_CHANGE", $lng->txt(
"last_change"));
143 $this->tpl->setVariable(
"VAL_STATUS_DATE",
145 $this->tpl->parseCurrentBlock();
151 default: $pic =
"scorm/not_attempted.svg";
break;
154 $this->tpl->setVariable(
"ALT_STATUS", $lng->txt(
"wiki_".$status));
157 $this->tpl->setVariable(
"TXT_MARK", $lng->txt(
"wiki_mark"));
158 $this->tpl->setVariable(
"NAME_MARK",
159 "mark[".$a_set[
"user_id"].
"]");
162 $this->tpl->setVariable(
"VAL_MARK",
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 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.
__construct($a_parent_obj, $a_parent_cmd="", $a_wiki_id)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static formatDate(ilDateTime $date)
Format a date public.
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.
static _getPersonalPicturePath($a_usr_id, $a_size="small", $a_force_pic=false, $a_prevent_no_photo_image=false)
Get path to personal picture.
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)
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.