original_string: protected function render_mod_quiz_links_to_other_attempts(
              mod_quiz_links_to_other_attempts $links) {
          $attemptlinks = array();
          foreach ($links->links as $attempt => $url) {
              if (!$url) {
                  $attemptlinks[] = html_writer::tag('strong', $attempt);
              } else if ($url instanceof renderable) {
                  $attemptlinks[] = $this->render($url);
              } else {
                  $attemptlinks[] = html_writer::link($url, $attempt);
              }
          }
          return implode(', ', $attemptlinks);
      }
code: protected function render_mod_quiz_links_to_other_attempts(
              mod_quiz_links_to_other_attempts $links) {
          $attemptlinks = array();
          foreach ($links->links as $attempt => $url) {
              if (!$url) {
                  $attemptlinks[] = html_writer::tag('strong', $attempt);
              } else if ($url instanceof renderable) {
                  $attemptlinks[] = $this->render($url);
              } else {
                  $attemptlinks[] = html_writer::link($url, $attempt);
              }
          }
          return implode(', ', $attemptlinks);
      }
code_tokens: protected function render_mod_quiz_links_to_other_attempts ( mod_quiz_links_to_other_attempts $ links ) { $ attemptlinks = array ( ) ; foreach ( $ links -> links as $ attempt => $ url ) { if ( ! $ url ) { $ attemptlinks [ ] = html_writer :: tag ( 'strong' , $ attempt ) ; } else if ( $ url instanceof renderable ) { $ attemptlinks [ ] = $ this -> render ( $ url ) ; } else { $ attemptlinks [ ] = html_writer :: link ( $ url , $ attempt ) ; } } return implode ( ', ' , $ attemptlinks ) ; }
docstring: outputs the link the other attempts.
  
  @param mod_quiz_links_to_other_attempts $links
docstring_tokens: outputs the link the other attempts .