original_string: protected function helper_reviewers_of_participant(stdclass $allocation, array $userinfo, array $reviewers, $selfassessment) {
          $o = '';
          if (is_null($allocation->submissionid)) {
              $o .= $this->output->container(get_string('nothingtoreview', 'workshop'), 'info');
          } else {
              $exclude = array();
              if (! $selfassessment) {
                  $exclude[$allocation->userid] = true;
              }
              // todo add an option to exclude users without own submission
              $options = array_diff_key($reviewers, $exclude);
              if ($options) {
                  $handler = new moodle_url($this->page->url, array('mode' => 'new', 'of' => $allocation->userid, 'sesskey' => sesskey()));
                  $select = new single_select($handler, 'by', $options, '', array(''=>get_string('chooseuser', 'workshop')), 'addreviewof' . $allocation->userid);
                  $select->set_label(get_string('addreviewer', 'workshopallocation_manual'));
                  $o .= $this->output->render($select);
              }
          }
          $o .= html_writer::start_tag('ul', array());
          foreach ($allocation->reviewedby as $reviewerid => $assessmentid) {
              $o .= html_writer::start_tag('li', array());
              $o .= $this->output->user_picture($userinfo[$reviewerid], array('courseid' => $this->page->course->id, 'size' => 16));
              $o .= fullname($userinfo[$reviewerid]);
  
              // delete icon
              $handler = new moodle_url($this->page->url, array('mode' => 'del', 'what' => $assessmentid, 'sesskey' => sesskey()));
              $o .= $this->helper_remove_allocation_icon($handler);
  
              $o .= html_writer::end_tag('li');
          }
          $o .= html_writer::end_tag('ul');
          return $o;
      }
code: protected function helper_reviewers_of_participant(stdclass $allocation, array $userinfo, array $reviewers, $selfassessment) {
          $o = '';
          if (is_null($allocation->submissionid)) {
              $o .= $this->output->container(get_string('nothingtoreview', 'workshop'), 'info');
          } else {
              $exclude = array();
              if (! $selfassessment) {
                  $exclude[$allocation->userid] = true;
              }
              // todo add an option to exclude users without own submission
              $options = array_diff_key($reviewers, $exclude);
              if ($options) {
                  $handler = new moodle_url($this->page->url, array('mode' => 'new', 'of' => $allocation->userid, 'sesskey' => sesskey()));
                  $select = new single_select($handler, 'by', $options, '', array(''=>get_string('chooseuser', 'workshop')), 'addreviewof' . $allocation->userid);
                  $select->set_label(get_string('addreviewer', 'workshopallocation_manual'));
                  $o .= $this->output->render($select);
              }
          }
          $o .= html_writer::start_tag('ul', array());
          foreach ($allocation->reviewedby as $reviewerid => $assessmentid) {
              $o .= html_writer::start_tag('li', array());
              $o .= $this->output->user_picture($userinfo[$reviewerid], array('courseid' => $this->page->course->id, 'size' => 16));
              $o .= fullname($userinfo[$reviewerid]);
  
              // delete icon
              $handler = new moodle_url($this->page->url, array('mode' => 'del', 'what' => $assessmentid, 'sesskey' => sesskey()));
              $o .= $this->helper_remove_allocation_icon($handler);
  
              $o .= html_writer::end_tag('li');
          }
          $o .= html_writer::end_tag('ul');
          return $o;
      }
code_tokens: protected function helper_reviewers_of_participant ( stdclass $ allocation , array $ userinfo , array $ reviewers , $ selfassessment ) { $ o = '' ; if ( is_null ( $ allocation -> submissionid ) ) { $ o .= $ this -> output -> container ( get_string ( 'nothingtoreview' , 'workshop' ) , 'info' ) ; } else { $ exclude = array ( ) ; if ( ! $ selfassessment ) { $ exclude [ $ allocation -> userid ] = true ; } // todo add an option to exclude users without own submission $ options = array_diff_key ( $ reviewers , $ exclude ) ; if ( $ options ) { $ handler = new moodle_url ( $ this -> page -> url , array ( 'mode' => 'new' , 'of' => $ allocation -> userid , 'sesskey' => sesskey ( ) ) ) ; $ select = new single_select ( $ handler , 'by' , $ options , '' , array ( '' => get_string ( 'chooseuser' , 'workshop' ) ) , 'addreviewof' . $ allocation -> userid ) ; $ select -> set_label ( get_string ( 'addreviewer' , 'workshopallocation_manual' ) ) ; $ o .= $ this -> output -> render ( $ select ) ; } } $ o .= html_writer :: start_tag ( 'ul' , array ( ) ) ; foreach ( $ allocation -> reviewedby as $ reviewerid => $ assessmentid ) { $ o .= html_writer :: start_tag ( 'li' , array ( ) ) ; $ o .= $ this -> output -> user_picture ( $ userinfo [ $ reviewerid ] , array ( 'courseid' => $ this -> page -> course -> id , 'size' => 16 ) ) ; $ o .= fullname ( $ userinfo [ $ reviewerid ] ) ; // delete icon $ handler = new moodle_url ( $ this -> page -> url , array ( 'mode' => 'del' , 'what' => $ assessmentid , 'sesskey' => sesskey ( ) ) ) ; $ o .= $ this -> helper_remove_allocation_icon ( $ handler ) ; $ o .= html_writer :: end_tag ( 'li' ) ; } $ o .= html_writer :: end_tag ( 'ul' ) ; return $ o ; }
docstring: Returns information about the current reviewers of the given participant and a selector do add new one
  
  @return string html code
docstring_tokens: Returns information about the current reviewers of the given participant and a selector do add new one