[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/quiz/report/overview/ -> overview_table.php (summary)

This file defines the quiz grades table.

Copyright: 2008 Jamie Pratt
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 317 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

quiz_overview_table:: (14 methods):
  __construct()
  build_table()
  add_average_row()
  format_average_grade_for_questions()
  format_average()
  submit_buttons()
  col_sumgrades()
  other_cols()
  col_regraded()
  requires_latest_steps_loaded()
  is_latest_step_column()
  get_required_latest_state_fields()
  query_db()
  get_regraded_questions()


Class: quiz_overview_table  - X-Ref

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

__construct($quiz, $context, $qmsubselect,quiz_overview_options $options, $groupstudents, $students, $questions, $reporturl)   X-Ref
Constructor

param: object $quiz
param: context $context
param: string $qmsubselect
param: quiz_overview_options $options
param: array $groupstudents
param: array $students
param: array $questions
param: moodle_url $reporturl

build_table()   X-Ref
No description

add_average_row($label, $users)   X-Ref
Add an average grade over the attempts of a set of users.

param: string $label the title ot use for this row.
param: array $users the users to average over.

format_average_grade_for_questions($gradeaverages)   X-Ref
Helper userd by {@link add_average_row()}.

param: array $gradeaverages the raw grades.
return: array the (partial) row of data.

format_average($record, $question = false)   X-Ref
Format an entry in an average row.

param: object $record with fields grade and numaveraged

submit_buttons()   X-Ref
No description

col_sumgrades($attempt)   X-Ref
No description

other_cols($colname, $attempt)   X-Ref

param: string $colname the name of the column.
param: object $attempt the row of data - see the SQL in display() in
return: string the contents of the cell.

col_regraded($attempt)   X-Ref
No description

requires_latest_steps_loaded()   X-Ref
No description

is_latest_step_column($column)   X-Ref
No description

get_required_latest_state_fields($slot, $alias)   X-Ref
No description

query_db($pagesize, $useinitialsbar = true)   X-Ref
No description

get_regraded_questions()   X-Ref
Get all the questions in all the attempts being displayed that need regrading.

return: array A two dimensional array $questionusageid => $slot => $regradeinfo.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1