24include_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",
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static _lookupMark($a_usr_id, $a_obj_id)
static _lookupComment($a_usr_id, $a_obj_id)
static _getPersonalPicturePath($a_usr_id, $a_size="small", $a_force_pic=false, $a_prevent_no_photo_image=false)
Get path to personal picture.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
static _lookupStatusTime($a_obj_id, $a_user_id)
Lookup last change in mark or success status.
static _lookupStatus($a_obj_id, $a_user_id)
Lookup current success status (STATUS_NOT_GRADED|STATUS_PASSED|STATUS_FAILED)
TableGUI class for listing users that contributed to the wiki.
fillRow($a_set)
Standard Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd="", $a_wiki_id)
Constructor.
getContributors()
Get contributors of wiki.
static getWikiContributors($a_wiki_id)
Get all contributors of wiki.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.