|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| display ($quiz, $cm, $course) | |
Data Fields | |
| const | DEFAULT_PAGE_SIZE = 5 |
| const | DEFAULT_ORDER = 'random' |
Protected Member Functions | |
| get_qubaids_condition () | |
| load_attempts_by_usage_ids ($qubaids) | |
| base_url () | |
| list_questions_url ($includeauto=null) | |
| grade_question_url ($slot, $questionid, $grade, $page=true) | |
| format_count_for_table ($counts, $type, $gradestring) | |
| display_index ($includeauto) | |
| display_grading_interface ($slot, $questionid, $grade, $pagesize, $page, $shownames, $showidnumbers, $order) | |
| get_question_heading ($attempt, $shownames, $showidnumbers) | |
| validate_submitted_marks () | |
| process_submitted_data () | |
| get_question_state_summary ($slots) | |
| get_usage_ids_where_question_in_state ($summarystate, $slot, $questionid=null, $orderby= 'random', $page=0, $pagesize=null) | |
Protected Attributes | |
| $viewoptions = array() | |
| $questions | |
| $currentgroup | |
| $users | |
| $cm | |
| $quiz | |
| $context | |
Quiz report to help teachers manually grade questions that need it.
This report basically provides two screens:
Definition at line 42 of file report.php.
| base_url | ( | ) | [protected] |
Get the URL of the front page of the report that lists all the questions.
| $includeauto | if not given, use the current setting, otherwise, force a paricular value of includeauto in the URL. |
Definition at line 190 of file report.php.

| display | ( | $ | cm, |
| $ | course, | ||
| $ | quiz | ||
| ) |
Override this function to displays the report.
| $cm | the course-module for this quiz. |
| $course | the coures we are in. |
| $quiz | this quiz. |
Reimplemented from quiz_default_report.
Definition at line 54 of file report.php.

| display_grading_interface | ( | $ | slot, |
| $ | questionid, | ||
| $ | grade, | ||
| $ | pagesize, | ||
| $ | page, | ||
| $ | shownames, | ||
| $ | showidnumbers, | ||
| $ | order | ||
| ) | [protected] |
Definition at line 315 of file report.php.


| display_index | ( | $ | includeauto | ) | [protected] |
Definition at line 246 of file report.php.


| format_count_for_table | ( | $ | counts, |
| $ | type, | ||
| $ | gradestring | ||
| ) | [protected] |
Definition at line 235 of file report.php.


| get_qubaids_condition | ( | ) | [protected] |
| get_question_heading | ( | $ | attempt, |
| $ | shownames, | ||
| $ | showidnumbers | ||
| ) | [protected] |
| get_question_state_summary | ( | $ | slots | ) | [protected] |
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
| array | $slots | A list of slots for the questions you want to konw about. |
Definition at line 502 of file report.php.


| get_usage_ids_where_question_in_state | ( | $ | summarystate, |
| $ | slot, | ||
| $ | questionid = null, |
||
| $ | orderby = 'random', |
||
| $ | page = 0, |
||
| $ | pagesize = null |
||
| ) | [protected] |
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.
| int | $slot | The slot for the questions you want to konw about. |
| int | $questionid | (optional) Only return attempts that were of this specific question. |
| string | $summarystate | 'all', 'needsgrading', 'autograded' or 'manuallygraded'. |
| string | $orderby | 'random', 'date', 'student' or 'idnumber'. |
| int | $page | implements paging of the results. Ignored if $orderby = random or $pagesize is null. |
| int | $pagesize | implements paging of the results. null = all. |
Definition at line 525 of file report.php.


| grade_question_url | ( | $ | slot, |
| $ | questionid, | ||
| $ | grade, | ||
| $ | page = true |
||
| ) | [protected] |
| int | $slot | |
| int | $questionid | |
| string | $grade | |
| mixed | $page | = true, link to current page. false = omit page. number = link to specific page. |
Definition at line 220 of file report.php.


| list_questions_url | ( | $ | includeauto = null | ) | [protected] |
Get the URL of the front page of the report that lists all the questions.
| $includeauto | if not given, use the current setting, otherwise, force a paricular value of includeauto in the URL. |
Definition at line 201 of file report.php.


| load_attempts_by_usage_ids | ( | $ | qubaids | ) | [protected] |
| process_submitted_data | ( | ) | [protected] |
Definition at line 470 of file report.php.


| validate_submitted_marks | ( | ) | [protected] |
Definition at line 440 of file report.php.


$cm [protected] |
Definition at line 50 of file report.php.
$context [protected] |
Definition at line 52 of file report.php.
$currentgroup [protected] |
Definition at line 48 of file report.php.
$questions [protected] |
Definition at line 47 of file report.php.
$quiz [protected] |
Definition at line 51 of file report.php.
$users [protected] |
Definition at line 49 of file report.php.
$viewoptions = array() [protected] |
Definition at line 46 of file report.php.
| const DEFAULT_ORDER = 'random' |
Definition at line 44 of file report.php.
| const DEFAULT_PAGE_SIZE = 5 |
Definition at line 43 of file report.php.