Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

(no description)

File Size: 147 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

quiz_last_responses_table:: (9 methods):
  __construct()
  build_table()
  col_sumgrades()
  data_col()
  field_from_extra_data()
  other_cols()
  requires_extra_data()
  is_latest_step_column()
  get_required_latest_state_fields()


Class: quiz_last_responses_table  - X-Ref

This is a table subclass for displaying the quiz responses report.

__construct($quiz, $context, $qmsubselect, quiz_responses_options $options,\core\dml\sql_join $groupstudentsjoins, \core\dml\sql_join $studentsjoins, $questions, $reporturl)   X-Ref
Constructor

param: stdClass $quiz
param: context $context
param: string $qmsubselect
param: quiz_responses_options $options
param: \core\dml\sql_join $groupstudentsjoins
param: \core\dml\sql_join $studentsjoins
param: array $questions
param: moodle_url $reporturl

build_table()   X-Ref
No description

col_sumgrades($attempt)   X-Ref
No description

data_col($slot, $field, $attempt)   X-Ref
No description

field_from_extra_data($attempt, $slot, $field)   X-Ref
Column text from the extra data loaded in load_extra_data(), before html formatting etc.

param: stdClass $attempt
param: int $slot
param: string $field
return: string

other_cols($colname, $attempt)   X-Ref
No description

requires_extra_data()   X-Ref
No description

is_latest_step_column($column)   X-Ref
No description

get_required_latest_state_fields($slot, $alias)   X-Ref
Get any fields that might be needed when sorting on date for a particular slot.

param: int    $slot  the slot for the column we want.
param: string $alias the table alias for latest state information relating to that slot.
return: string sql fragment to alias fields.