original_string: public function links_to_other_redos($slot, moodle_url $baseurl) {
          $originalslot = $this->get_original_slot($slot);
  
          $qas = $this->all_question_attempts_originally_in_slot($originalslot);
          if (count($qas) <= 1) {
              return null;
          }
  
          $links = new mod_quiz_links_to_other_attempts();
          $index = 1;
          foreach ($qas as $qa) {
              if ($qa->get_slot() == $slot) {
                  $links->links[$index] = null;
              } else {
                  $url = new moodle_url($baseurl, array('slot' => $qa->get_slot()));
                  $links->links[$index] = new action_link($url, $index,
                          new popup_action('click', $url, 'reviewquestion',
                                  array('width' => 450, 'height' => 650)),
                          array('title' => get_string('reviewresponse', 'question')));
              }
              $index++;
          }
          return $links;
      }
code: public function links_to_other_redos($slot, moodle_url $baseurl) {
          $originalslot = $this->get_original_slot($slot);
  
          $qas = $this->all_question_attempts_originally_in_slot($originalslot);
          if (count($qas) <= 1) {
              return null;
          }
  
          $links = new mod_quiz_links_to_other_attempts();
          $index = 1;
          foreach ($qas as $qa) {
              if ($qa->get_slot() == $slot) {
                  $links->links[$index] = null;
              } else {
                  $url = new moodle_url($baseurl, array('slot' => $qa->get_slot()));
                  $links->links[$index] = new action_link($url, $index,
                          new popup_action('click', $url, 'reviewquestion',
                                  array('width' => 450, 'height' => 650)),
                          array('title' => get_string('reviewresponse', 'question')));
              }
              $index++;
          }
          return $links;
      }
code_tokens: public function links_to_other_redos ( $ slot , moodle_url $ baseurl ) { $ originalslot = $ this -> get_original_slot ( $ slot ) ; $ qas = $ this -> all_question_attempts_originally_in_slot ( $ originalslot ) ; if ( count ( $ qas ) <= 1 ) { return null ; } $ links = new mod_quiz_links_to_other_attempts ( ) ; $ index = 1 ; foreach ( $ qas as $ qa ) { if ( $ qa -> get_slot ( ) == $ slot ) { $ links -> links [ $ index ] = null ; } else { $ url = new moodle_url ( $ baseurl , array ( 'slot' => $ qa -> get_slot ( ) ) ) ; $ links -> links [ $ index ] = new action_link ( $ url , $ index , new popup_action ( 'click' , $ url , 'reviewquestion' , array ( 'width' => 450 , 'height' => 650 ) ) , array ( 'title' => get_string ( 'reviewresponse' , 'question' ) ) ) ; } $ index ++ ; } return $ links ; }
docstring: Return an array of variant URLs to other redos of the question in a particular slot.
  
  The $url passed in must contain a slot parameter.
  
  The {@link mod_quiz_links_to_other_attempts} object returned contains an
  array with keys that are the redo number, 1, 2, 3.
  The array values are either a {@link moodle_url} with the slot parameter
  updated to point to the slot that has that redo of this question; or null
  corresponding to the redo identified by $slot.
  
  @param int $slot identifies a question in this attempt.
  @param moodle_url $baseurl the base URL to modify to generate each link.
  @return mod_quiz_links_to_other_attempts|null containing array int => null|moodle_url,
  or null if the question in this slot has not been redone.
docstring_tokens: Return an array of variant URLs to other redos of the question in a particular slot .