37         bool $a_show_peer_review = 
false,
    38         bool $a_disable_peer_review = 
false    42         $this->
ctrl = $DIC->ctrl();
    43         $this->
lng = $DIC->language();
    44         $ilCtrl = $DIC->ctrl();
    45         $lng = $DIC->language();
    47         $this->subm = $DIC->exercise()->internal()->domain()->submission($a_ass->
getId());
    49         $this->show_peer_review = $a_show_peer_review;
    50         $this->
setId(
"excassltxt" . $this->ass->getId());
    55             $lng->
txt(
"exc_list_text_assignment") .
    56                 ": \"" . $this->ass->getTitle() . 
"\""    63         $this->
addColumn($this->
lng->txt(
"user"), 
"uname", 
"15%");
    64         $this->
addColumn($this->
lng->txt(
"exc_last_submission"), 
"udate", 
"10%");
    66         if ($this->show_peer_review) {
    67             $this->
addColumn($this->
lng->txt(
"exc_files_returned_text"), 
"", 
"45%");
    68             $this->
addColumn($this->
lng->txt(
"exc_peer_review"), 
"", 
"30%");
    72             $this->
addColumn($this->
lng->txt(
"exc_files_returned_text"), 
"", 
"75%");
    79         $this->
setRowTemplate(
"tpl.exc_list_text_assignment_row.html", 
"components/ILIAS/Exercise");
    81         if (!$a_disable_peer_review &&
    82             $this->ass->getPeerReview() &&
    83             !$a_show_peer_review) {
    92         return ($a_field == 
"udate");
    95     protected function parse(): void
    98         if ($this->show_peer_review) {
    99             $peer_data = $this->peer_review->getAllPeerReviews();
   102         foreach ($this->subm->getAllAssignmentFiles() as $file) {
   103             if (trim($file[
"atext"])) {
   104                 $data[$file[
"user_id"]] = array(
   105                     "uid" => $file[
"user_id"],
   107                     "udate" => $file[
"ts"],
   111                 if (isset($peer_data[$file[
"user_id"]])) {
   112                     $data[$file[
"user_id"]][
"peer"] = array_keys($peer_data[$file[
"user_id"]]);
   120     protected function fillRow(array $a_set): void
   122         if ($this->show_peer_review) {
   123             $peer_data = 
" ";
   124             if (isset($a_set[
"peer"])) {
   126                 $acc->setId($this->ass->getId() . 
"_" . $a_set[
"uid"]);
   128                 foreach ($a_set[
"peer"] as $peer_id) {
   130                     $values = $submission->getPeerReview()->getPeerReviewValues($peer_id, $a_set[
"uid"]);
   133                     foreach ($this->ass->getPeerReviewCriteriaCatalogueItems() as $crit) {
   134                         $crit_id = $crit->getId()
   137                         $crit->setPeerReviewContext($this->ass, $peer_id, $a_set[
"uid"]);
   140                         $acc_html[] = 
'<p>' .
   141                             '<div class="ilBlockPropertyCaption">' . $crit->getTitle() . 
'</div>' .
   142                             '<div>' . $crit->getHTML($values[$crit_id]) . 
'</div>' .
   148                         '<div style="margin-left:10px;">' . implode(
"\n", $acc_html) . 
'</div>'   152                 $peer_data = $acc->getHTML();
   154             $this->tpl->setCurrentBlock(
"peer_bl");
   155             $this->tpl->setVariable(
"PEER_REVIEW", $peer_data);
   156             $this->tpl->parseCurrentBlock();
   159         $this->tpl->setVariable(
"USER_NAME", $a_set[
"uname"]);
   160         $this->tpl->setVariable(
   164         $this->tpl->setVariable(
"USER_TEXT", nl2br($a_set[
"utext"]));
 static _replaceMediaObjectImageSrc(string $a_text, int $a_direction=0, string $nic='')
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ilObjUser $user=null,)
 
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)
 
numericOrdering(string $a_field)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
ilExPeerReview $peer_review
 
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is: 
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
__construct(Container $dic, ilPlugin $plugin)
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
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)
 
Exercise submission //TODO: This class has many static methods related to delivered "files"...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(object $a_parent_obj, string $a_parent_cmd, ilExAssignment $a_ass, bool $a_show_peer_review=false, bool $a_disable_peer_review=false)