original_string: public function make_review_link($data, $attempt, $slot) {
          global $OUTPUT;
  
          $flag = '';
          if ($this->is_flagged($attempt->usageid, $slot)) {
              $flag = $OUTPUT->pix_icon('i/flagged', get_string('flagged', 'question'),
                      'moodle', array('class' => 'questionflag'));
          }
  
          $feedbackimg = '';
          $state = $this->slot_state($attempt, $slot);
          if ($state->is_finished() && $state != question_state::$needsgrading) {
              $feedbackimg = $this->icon_for_fraction($this->slot_fraction($attempt, $slot));
          }
  
          $output = html_writer::tag('span', $feedbackimg . html_writer::tag('span',
                  $data, array('class' => $state->get_state_class(true))) . $flag, array('class' => 'que'));
  
          $reviewparams = array('attempt' => $attempt->attempt, 'slot' => $slot);
          if (isset($attempt->try)) {
              $reviewparams['step'] = $this->step_no_for_try($attempt->usageid, $slot, $attempt->try);
          }
          $url = new moodle_url('/mod/quiz/reviewquestion.php', $reviewparams);
          $output = $OUTPUT->action_link($url, $output,
                  new popup_action('click', $url, 'reviewquestion',
                          array('height' => 450, 'width' => 650)),
                  array('title' => get_string('reviewresponse', 'quiz')));
  
          return $output;
      }
code: public function make_review_link($data, $attempt, $slot) {
          global $OUTPUT;
  
          $flag = '';
          if ($this->is_flagged($attempt->usageid, $slot)) {
              $flag = $OUTPUT->pix_icon('i/flagged', get_string('flagged', 'question'),
                      'moodle', array('class' => 'questionflag'));
          }
  
          $feedbackimg = '';
          $state = $this->slot_state($attempt, $slot);
          if ($state->is_finished() && $state != question_state::$needsgrading) {
              $feedbackimg = $this->icon_for_fraction($this->slot_fraction($attempt, $slot));
          }
  
          $output = html_writer::tag('span', $feedbackimg . html_writer::tag('span',
                  $data, array('class' => $state->get_state_class(true))) . $flag, array('class' => 'que'));
  
          $reviewparams = array('attempt' => $attempt->attempt, 'slot' => $slot);
          if (isset($attempt->try)) {
              $reviewparams['step'] = $this->step_no_for_try($attempt->usageid, $slot, $attempt->try);
          }
          $url = new moodle_url('/mod/quiz/reviewquestion.php', $reviewparams);
          $output = $OUTPUT->action_link($url, $output,
                  new popup_action('click', $url, 'reviewquestion',
                          array('height' => 450, 'width' => 650)),
                  array('title' => get_string('reviewresponse', 'quiz')));
  
          return $output;
      }
code_tokens: public function make_review_link ( $ data , $ attempt , $ slot ) { global $ OUTPUT ; $ flag = '' ; if ( $ this -> is_flagged ( $ attempt -> usageid , $ slot ) ) { $ flag = $ OUTPUT -> pix_icon ( 'i/flagged' , get_string ( 'flagged' , 'question' ) , 'moodle' , array ( 'class' => 'questionflag' ) ) ; } $ feedbackimg = '' ; $ state = $ this -> slot_state ( $ attempt , $ slot ) ; if ( $ state -> is_finished ( ) && $ state != question_state :: $ needsgrading ) { $ feedbackimg = $ this -> icon_for_fraction ( $ this -> slot_fraction ( $ attempt , $ slot ) ) ; } $ output = html_writer :: tag ( 'span' , $ feedbackimg . html_writer :: tag ( 'span' , $ data , array ( 'class' => $ state -> get_state_class ( true ) ) ) . $ flag , array ( 'class' => 'que' ) ) ; $ reviewparams = array ( 'attempt' => $ attempt -> attempt , 'slot' => $ slot ) ; if ( isset ( $ attempt -> try ) ) { $ reviewparams [ 'step' ] = $ this -> step_no_for_try ( $ attempt -> usageid , $ slot , $ attempt -> try ) ; } $ url = new moodle_url ( '/mod/quiz/reviewquestion.php' , $ reviewparams ) ; $ output = $ OUTPUT -> action_link ( $ url , $ output , new popup_action ( 'click' , $ url , 'reviewquestion' , array ( 'height' => 450 , 'width' => 650 ) ) , array ( 'title' => get_string ( 'reviewresponse' , 'quiz' ) ) ) ; return $ output ; }
docstring: Make a link to review an individual question in a popup window.
  
  @param string $data HTML fragment. The text to make into the link.
  @param object $attempt data for the row of the table being output.
  @param int $slot the number used to identify this question within this usage.
docstring_tokens: Make a link to review an individual question in a popup window .