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

Public Member Functions

 __construct ($userid, $gpr, $context)
 setup_table ()
 fill_table ()
 print_table ($return=false)
 process_data ($data)
 process_action ($target, $action)

Data Fields

 $user
 $table
 $showrank
 $showtotalsifcontainhidden

Detailed Description

Definition at line 31 of file lib.php.


Constructor & Destructor Documentation

__construct ( userid,
gpr,
context 
)

Constructor. Sets local copies of user preferences and initialises grade_tree.

Parameters:
int$userid
object$gprgrade plugin return tracking object
string$context

Definition at line 61 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

find the number of users with a higher grade please note this can not work if hidden grades involved :-( to be fixed in 2.0

Definition at line 111 of file lib.php.

Here is the call graph for this function:

print_table ( return = false)

Prints or returns the HTML from the flexitable.

Parameters:
bool$returnWhether or not to return the data instead of printing it directly.
Returns:
string

Definition at line 187 of file lib.php.

process_action ( target,
action 
)

Processes a single action against a category, grade_item or grade.

Parameters:
string$targetSortorder
string$actionWhich action to take (edit, delete etc...)
Returns:

Reimplemented from grade_report.

Definition at line 205 of file lib.php.

process_data ( data)

Handles form data sent by this report for this report. Abstract method to implement in all children.

Parameters:
array$data
Returns:
mixed True or array of errors

Reimplemented from grade_report.

Definition at line 203 of file lib.php.

Prepares the headers and attributes of the flexitable.

Definition at line 81 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$showrank

show student ranks

Definition at line 48 of file lib.php.

$showtotalsifcontainhidden

show course/category totals if they contain hidden items

Definition at line 53 of file lib.php.

A flexitable to hold the data.

Definition at line 43 of file lib.php.

The user.

Definition at line 37 of file lib.php.


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