4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
    5include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
 
    6include_once(
"./Modules/Exercise/classes/class.ilExPeerReview.php");
 
   22        function __construct($a_parent_obj, $a_parent_cmd, 
ilExAssignment $a_ass, $a_show_peer_review = 
false, $a_disable_peer_review = 
false)
 
   27                $this->show_peer_review = (bool)$a_show_peer_review;
 
   28                $this->
setId(
"excassltxt".$this->ass->getId());
 
   30                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   32                $this->
setTitle($lng->txt(
"exc_list_text_assignment").
 
   33                        ": \"".$this->ass->getTitle().
"\"");
 
   39                $this->
addColumn($this->lng->txt(
"user"), 
"uname", 
"15%");
 
   40                $this->
addColumn($this->lng->txt(
"exc_last_submission"), 
"udate", 
"10%");
 
   42                if($this->show_peer_review)
 
   44                        $this->
addColumn($this->lng->txt(
"exc_files_returned_text"), 
"", 
"45%");                
 
   45                        $this->
addColumn($this->lng->txt(
"exc_peer_review"), 
"", 
"30%");
 
   47                        include_once 
'./Services/Rating/classes/class.ilRatingGUI.php';
 
   48                        include_once 
'./Services/Accordion/classes/class.ilAccordionGUI.php';
 
   54                        $this->
addColumn($this->lng->txt(
"exc_files_returned_text"), 
"", 
"75%");                
 
   61                $this->
setRowTemplate(
"tpl.exc_list_text_assignment_row.html", 
"Modules/Exercise");
 
   63                if(!$a_disable_peer_review &&
 
   64                        $this->ass->getPeerReview() && 
 
   67                        $this->
addCommandButton(
"listTextAssignmentWithPeerReview", $lng->txt(
"exc_show_peer_review"));                 
 
   75                return ($a_field == 
"udate");
 
   81                if($this->show_peer_review)
 
   83                        $peer_data = $this->peer_review->getAllPeerReviews();
 
   86                include_once 
"Services/User/classes/class.ilUserUtil.php";
 
   87                include_once 
"Services/RTE/classes/class.ilRTE.php";
 
   90                        if(trim(
$file[
"atext"]))
 
   93                                        "uid" => 
$file[
"user_id"],
 
   95                                        "udate" => 
$file[
"ts"],
 
   99                                if(isset($peer_data[
$file[
"user_id"]]))
 
  101                                        $data[
$file[
"user_id"]][
"peer"] = array_keys($peer_data[
$file[
"user_id"]]);     
 
  113                if($this->show_peer_review)
 
  115                        $peer_data = 
" ";
 
  116                        if(isset($a_set[
"peer"]))
 
  119                                $acc->setId($this->ass->getId().
"_".$a_set[
"uid"]);
 
  121                                foreach($a_set[
"peer"] as $peer_id)
 
  124                                        $acc_item = $peer_name;
 
  127                                        $values = $submission->getPeerReview()->getPeerReviewValues($peer_id, $a_set[
"uid"]);
 
  130                                        foreach($this->ass->getPeerReviewCriteriaCatalogueItems() as $crit)             
 
  132                                                $crit_id = $crit->getId()
 
  135                                                $crit->setPeerReviewContext($this->ass, $peer_id, $a_set[
"uid"]);
 
  139                                                        '<div class="ilBlockPropertyCaption">'.$crit->getTitle().
'</div>'.
 
  140                                                        '<div>'.$crit->getHTML($values[$crit_id]).
'</div>'.
 
  146                                                '<div style="margin-left:10px;">'.implode(
"\n", $acc_html).
'</div>' 
  150                                $peer_data = $acc->getHTML();                           
 
  152                        $this->tpl->setCurrentBlock(
"peer_bl");
 
  153                        $this->tpl->setVariable(
"PEER_REVIEW", $peer_data);                     
 
  154                        $this->tpl->parseCurrentBlock();
 
  157                $this->tpl->setVariable(
"USER_NAME", $a_set[
"uname"]);
 
  158                $this->tpl->setVariable(
"USER_DATE", 
 
  160                $this->tpl->setVariable(
"USER_TEXT", nl2br($a_set[
"utext"]));                   
 
An exception for terminatinating execution or to throw for unit testing.
Accordion user interface class.
static formatDate(ilDateTime $date)
Format a date @access public.
fillRow($a_set)
Standard Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd, ilExAssignment $a_ass, $a_show_peer_review=false, $a_disable_peer_review=false)
numericOrdering($a_field)
Should this field be sorted numeric?
static getAllAssignmentFiles($a_exc_id, $a_ass_id)
static _replaceMediaObjectImageSrc($a_text, $a_direction=0, $nic=IL_INST_ID)
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
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.
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.
setLimit($a_limit=0, $a_default_limit=0)
set max.
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 getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file