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

Public Member Functions

 __construct ($quiz, $context, $qmsubselect, $qmfilter, $attemptsmode, $groupstudents, $students, $questions, $includecheckboxes, $reporturl, $displayoptions)
 build_table ()
 col_sumgrades ($attempt)
 data_col ($slot, $field, $attempt)
 other_cols ($colname, $attempt)

Protected Member Functions

 requires_latest_steps_loaded ()
 is_latest_step_column ($column)
 get_required_latest_state_fields ($slot, $alias)

Detailed Description

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

Definition at line 36 of file responses_table.php.


Constructor & Destructor Documentation

__construct ( quiz,
context,
qmsubselect,
qmfilter,
attemptsmode,
groupstudents,
students,
questions,
includecheckboxes,
reporturl,
displayoptions 
)

Definition at line 38 of file responses_table.php.


Member Function Documentation

Take the data returned from the db_query and go through all the rows processing each col using either col_{columnname} method or other_cols method or if other_cols returns NULL then put the data straight into the table.

Reimplemented from table_sql.

Definition at line 46 of file responses_table.php.

col_sumgrades ( attempt)

Definition at line 53 of file responses_table.php.

Here is the call graph for this function:

data_col ( slot,
field,
attempt 
)

Definition at line 68 of file responses_table.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_required_latest_state_fields ( slot,
alias 
) [protected]

Get any fields that might be needed when sorting on date for a particular slot.

Parameters:
int$slotthe slot for the column we want.
string$aliasthe table alias for latest state information relating to that slot.

Reimplemented from quiz_attempt_report_table.

Definition at line 126 of file responses_table.php.

is_latest_step_column ( column) [protected]

Is this a column that depends on joining to the latest state information? If so, return the corresponding slot. If not, return false.

Parameters:
string$columna column name
Returns:
int false if no, else a slot.

Reimplemented from quiz_attempt_report_table.

Definition at line 114 of file responses_table.php.

other_cols ( column,
row 
)

You can override this method in a child class. See the description of build_table which calls this method.

Reimplemented from flexible_table.

Definition at line 95 of file responses_table.php.

Here is the call graph for this function:

Returns:
bool should query_db() call load_question_latest_steps?

Reimplemented from quiz_attempt_report_table.

Definition at line 110 of file responses_table.php.


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