[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/quiz/report/grading/ -> report.php (summary)

This file defines the quiz manual grading report class.

Copyright: 2006 Gustav Delius
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 590 lines (23 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

quiz_grading_report:: (14 methods):
  display()
  get_qubaids_condition()
  load_attempts_by_usage_ids()
  base_url()
  list_questions_url()
  grade_question_url()
  format_count_for_table()
  display_index()
  display_grading_interface()
  get_question_heading()
  validate_submitted_marks()
  process_submitted_data()
  get_question_state_summary()
  get_usage_ids_where_question_in_state()


Class: quiz_grading_report  - X-Ref

Quiz report to help teachers manually grade questions that need it.

This report basically provides two screens:
- List question that might need manual grading (or optionally all questions).
- Provide an efficient UI to grade all attempts at a particular question.

display($quiz, $cm, $course)   X-Ref
No description

get_qubaids_condition()   X-Ref
No description

load_attempts_by_usage_ids($qubaids)   X-Ref
No description

base_url()   X-Ref
Get the URL of the front page of the report that lists all the questions.

param: $includeauto if not given, use the current setting, otherwise,
return: string the URL.

list_questions_url($includeauto = null)   X-Ref
Get the URL of the front page of the report that lists all the questions.

param: $includeauto if not given, use the current setting, otherwise,
return: string the URL.

grade_question_url($slot, $questionid, $grade, $page = true)   X-Ref

param: int $slot
param: int $questionid
param: string $grade
param: mixed $page = true, link to current page. false = omit page.

format_count_for_table($counts, $type, $gradestring)   X-Ref
No description

display_index($includeauto)   X-Ref
No description

display_grading_interface($slot, $questionid, $grade,$pagesize, $page, $shownames, $showidnumbers, $order, $counts)   X-Ref
No description

get_question_heading($attempt, $shownames, $showidnumbers)   X-Ref
No description

validate_submitted_marks()   X-Ref
No description

process_submitted_data()   X-Ref
No description

get_question_state_summary($slots)   X-Ref
Load information about the number of attempts at various questions in each
summarystate.

The results are returned as an two dimensional array $qubaid => $slot => $dataobject

param: array $slots A list of slots for the questions you want to konw about.
return: array The array keys are slot,qestionid. The values are objects with

get_usage_ids_where_question_in_state($summarystate, $slot,$questionid = null, $orderby = 'random', $page = 0, $pagesize = null)   X-Ref
Get a list of usage ids where the question with slot $slot, and optionally
also with question id $questionid, is in summary state $summarystate. Also
return the total count of such states.

Only a subset of the ids can be returned by using $orderby, $limitfrom and
$limitnum. A special value 'random' can be passed as $orderby, in which case
$limitfrom is ignored.

param: int $slot The slot for the questions you want to konw about.
param: int $questionid (optional) Only return attempts that were of this specific question.
param: string $summarystate 'all', 'needsgrading', 'autograded' or 'manuallygraded'.
param: string $orderby 'random', 'date', 'student' or 'idnumber'.
param: int $page implements paging of the results.
param: int $pagesize implements paging of the results. null = all.



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