Moodle  2.2.1
http://www.collinsharper.com
quiz_report_statistics_question_table Class Reference
Inheritance diagram for quiz_report_statistics_question_table:
Collaboration diagram for quiz_report_statistics_question_table:

Public Member Functions

 __construct ($qid)
 setup ($reporturl, $questiondata, quiz_statistics_response_analyser $responesstats)

Protected Member Functions

 format_percentage ($fraction)
 col_fraction ($response)
 col_frequency ($response)

Protected Attributes

 $questiondata

Detailed Description

This table shows statistics about a particular question.

Lists the responses that students made to this question, with frequency counts.

The responses may be grouped, either by subpart of the question, or by the answer they match.

Definition at line 43 of file statistics_question_table.php.


Constructor & Destructor Documentation

__construct ( qid)

Constructor.

Parameters:
$qidthe id of the particular question whose statistics are being displayed.

Reimplemented from flexible_table.

Definition at line 52 of file statistics_question_table.php.


Member Function Documentation

col_fraction ( response) [protected]

The mark fraction that this response earns.

Parameters:
object$responsecontainst the data to display.
Returns:
string contents of this table cell.

Definition at line 127 of file statistics_question_table.php.

Here is the call graph for this function:

col_frequency ( response) [protected]

The frequency with which this response was given.

Parameters:
object$responsecontainst the data to display.
Returns:
string contents of this table cell.

Definition at line 140 of file statistics_question_table.php.

Here is the call graph for this function:

format_percentage ( fraction) [protected]

Definition at line 118 of file statistics_question_table.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setup ( reporturl,
questiondata,
quiz_statistics_response_analyser responesstats 
)

Setup the columns and headers and other properties of the table and then call flexible_table::setup() method.

Parameters:
moodle_url$reporturlthe URL to redisplay this report.
object$questiona question with a _stats field
bool$hassubqs

Definition at line 64 of file statistics_question_table.php.

Here is the call graph for this function:


Field Documentation

$questiondata [protected]

Definition at line 45 of file statistics_question_table.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations