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

Public Member Functions

 __construct ()
 setup ($quiz, $cmid, $reporturl, $s)
 wrap_html_start ()
 wrap_html_finish ()

Protected Member Functions

 col_number ($question)
 col_icon ($question)
 col_actions ($question)
 col_qtype ($question)
 col_name ($question)
 col_s ($question)
 col_facility ($question)
 col_sd ($question)
 col_random_guess_score ($question)
 col_intended_weight ($question)
 col_effective_weight ($question)
 col_discrimination_index ($question)
 col_discriminative_efficiency ($question)
 is_dubious_question ($question)

Protected Attributes

 $quiz
 $cmid

Detailed Description

This table has one row for each question in the quiz, with sub-rows when random questions appear. There are columns for the various statistics.

Definition at line 39 of file statistics_table.php.


Constructor & Destructor Documentation

Constructor.

Definition at line 49 of file statistics_table.php.


Member Function Documentation

col_actions ( question) [protected]

Actions that can be performed on the question by this user (e.g. edit or preview).

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

Definition at line 163 of file statistics_table.php.

Here is the call graph for this function:

col_discrimination_index ( question) [protected]

Discrimination index. This is the product moment correlation coefficient between the fraction for this qestion, and the average fraction for the other questions in this quiz.

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

Definition at line 306 of file statistics_table.php.

col_discriminative_efficiency ( question) [protected]

Discrimination efficiency, similar to, but different from, the Discrimination index.

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

Definition at line 319 of file statistics_table.php.

col_effective_weight ( question) [protected]

The effective question weight. That is, an estimate of the actual influence this question has on the student's overall mark.

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

Definition at line 277 of file statistics_table.php.

Here is the call graph for this function:

col_facility ( question) [protected]

The facility index (average fraction).

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

Definition at line 225 of file statistics_table.php.

col_icon ( question) [protected]

The question type icon.

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

Definition at line 154 of file statistics_table.php.

Here is the call graph for this function:

col_intended_weight ( question) [protected]

The intended question weight. Maximum mark for the question as a percentage of maximum mark for the quiz. That is, the indended influence this question on the student's overall mark.

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

Definition at line 266 of file statistics_table.php.

Here is the call graph for this function:

col_name ( question) [protected]

The question name.

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

Definition at line 181 of file statistics_table.php.

Here is the call graph for this function:

col_number ( question) [protected]

The question number.

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

Definition at line 141 of file statistics_table.php.

col_qtype ( question) [protected]

The question type name.

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

Definition at line 172 of file statistics_table.php.

Here is the call graph for this function:

col_random_guess_score ( question) [protected]

An estimate of the fraction a student would get by guessing randomly.

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

Definition at line 251 of file statistics_table.php.

col_s ( question) [protected]

The number of attempts at this question.

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

Definition at line 212 of file statistics_table.php.

col_sd ( question) [protected]

The standard deviation of the fractions.

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

Definition at line 238 of file statistics_table.php.

is_dubious_question ( question) [protected]

This method encapsulates the test for wheter a question should be considered dubious.

Parameters:
objectquestion the question object with a property _stats which includes all the stats for the question.
Returns:
bool is this question possibly not pulling it's weight?

Definition at line 333 of file statistics_table.php.

Here is the caller graph for this function:

setup ( quiz,
cmid,
reporturl,
s 
)

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

Parameters:
object$quizthe quiz settings
int$cmidthe quiz course_module id
moodle_url$reporturlthe URL to redisplay this report.
int$snumber of attempts included in the statistics.

Definition at line 62 of file statistics_table.php.

Here is the call graph for this function:

Hook that can be overridden in child classes to wrap a table in a form for example. Called only when there is data to display and not downloading.

Reimplemented from flexible_table.

Definition at line 349 of file statistics_table.php.

Here is the call graph for this function:

Hook that can be overridden in child classes to wrap a table in a form for example. Called only when there is data to display and not downloading.

Reimplemented from flexible_table.

Definition at line 341 of file statistics_table.php.

Here is the call graph for this function:


Field Documentation

$cmid [protected]

Definition at line 44 of file statistics_table.php.

$quiz [protected]

Definition at line 41 of file statistics_table.php.


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