Exemple #1
0
 function col_fullname($attempt)
 {
     $html = parent::col_fullname($attempt);
     if ($this->is_downloading()) {
         return $html;
     }
     return $html . '<br /><a class="reviewlink" href="review.php?q=' . $this->quiz->id . '&amp;attempt=' . $attempt->attempt . '">' . get_string('reviewattempt', 'quiz') . '</a>';
 }
 /**
  * Formats the column fullname.
  *
  * @param stdClass $row Table row.
  * @return string Output produced.
  */
 public function col_fullname($row)
 {
     if ($this->identitymode == block_xp_manager::IDENTITY_OFF && $row->userid != $this->userid) {
         return get_string('someoneelse', 'block_xp');
     }
     return parent::col_fullname($row);
 }
    /**
     * Generate the display of the user's full name column.
     * @param object $attempt the table row being output.
     * @return string HTML content to go inside the td.
     */
    public function col_fullname($attempt) {
        $html = parent::col_fullname($attempt);
        if ($this->is_downloading()) {
            return $html;
        }

        return $html . html_writer::empty_tag('br') . html_writer::link(
                new moodle_url('/mod/quiz/review.php', array('attempt' => $attempt->attempt)),
                get_string('reviewattempt', 'quiz'), array('class' => 'reviewlink'));
    }