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

Public Member Functions

 __construct ($quiz, $context, $qmsubselect, $qmfilter, $attemptsmode, $groupstudents, $students, $detailedmarks, $questions, $includecheckboxes, $reporturl, $displayoptions)
 build_table ()
 col_sumgrades ($attempt)
 other_cols ($colname, $attempt)
 col_regraded ($attempt)
 query_db ($pagesize, $useinitialsbar=true)

Protected Member Functions

 add_average_row ($label, $users)
 format_average_grade_for_questions ($gradeaverages)
 format_average ($record, $question=false)
 submit_buttons ()
 requires_latest_steps_loaded ()
 is_latest_step_column ($column)
 get_required_latest_state_fields ($slot, $alias)
 get_regraded_questions ()

Protected Attributes

 $regradedqs = array()

Detailed Description

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

Definition at line 36 of file overview_table.php.


Constructor & Destructor Documentation

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

Reimplemented from quiz_attempt_report_table.

Definition at line 40 of file overview_table.php.


Member Function Documentation

add_average_row ( label,
users 
) [protected]

Add an average grade over the attempts of a set of users.

Parameters:
string$labelthe title ot use for this row.
array$usersthe users to average over.

Definition at line 76 of file overview_table.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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 49 of file overview_table.php.

Here is the call graph for this function:

col_regraded ( attempt)

Definition at line 262 of file overview_table.php.

col_sumgrades ( attempt)

Definition at line 173 of file overview_table.php.

Here is the call graph for this function:

format_average ( record,
question = false 
) [protected]

Format an entry in an average row.

Parameters:
object$recordwith fields grade and numaveraged

Definition at line 143 of file overview_table.php.

Here is the call graph for this function:

Here is the caller graph for this function:

format_average_grade_for_questions ( gradeaverages) [protected]

Helper userd by add_average_row().

Parameters:
array$gradeaveragesthe raw grades.
Returns:
array the (partial) row of data.

Definition at line 114 of file overview_table.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_regraded_questions ( ) [protected]

Get all the questions in all the attempts being displayed that need regrading.

Returns:
array A two dimensional array $questionusageid => $slot => $regradeinfo.

Definition at line 299 of file overview_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 283 of file overview_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 276 of file overview_table.php.

other_cols ( colname,
attempt 
)
Parameters:
string$colnamethe name of the column.
object$attemptthe row of data - see the SQL in display() in mod/quiz/report/overview/report.php to see what fields are present, and what they are called.
Returns:
string the contents of the cell.

Reimplemented from flexible_table.

Definition at line 216 of file overview_table.php.

Here is the call graph for this function:

query_db ( pagesize,
useinitialsbar = true 
)

Query the db. Store results in the table object for use by build_table.

Parameters:
int$pagesizesize of page for paginated displayed table.
bool$useinitialsbardo you want to use the initials bar. Bar will only be used if there is a fullname column defined for the table.

Reimplemented from quiz_attempt_report_table.

Definition at line 287 of file overview_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 272 of file overview_table.php.

submit_buttons ( ) [protected]

Output any submit buttons required by the $this->includecheckboxes form.

Reimplemented from quiz_attempt_report_table.

Definition at line 165 of file overview_table.php.

Here is the call graph for this function:


Field Documentation

$regradedqs = array() [protected]

Definition at line 38 of file overview_table.php.


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