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

Public Member Functions

 __construct ($courseid, $gpr, $context, $userid)
 inject_rowspans (&$element)
 setup_table ()
 fill_table ()
 print_table ($return=false)
 process_data ($data)
 process_action ($target, $action)
 calculate_averages ()

Data Fields

 $user
 $table
 $tableheaders = array()
 $tablecolumns = array()
 $tabledata = array()
 $gtree
 $gseq
 $showrank
 $showpercentage
 $showrange = true
 $showgrade = true
 $decimals = 2
 $rangedecimals = 0
 $showfeedback = true
 $showweight = false
 $showlettergrade = false
 $showaverage = false
 $maxdepth
 $evenodd
 $canviewhidden
 $switch
 $showhiddenitems
 $showtotalsifcontainhidden
 $baseurl
 $pbarurl

Detailed Description

Definition at line 36 of file lib.php.


Constructor & Destructor Documentation

__construct ( courseid,
gpr,
context,
userid 
)

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

Parameters:
int$courseid
object$gprgrade plugin return tracking object
string$context
int$useridThe id of the user

Reimplemented from grade_report.

Definition at line 159 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

Builds the grade item averages.

Definition at line 583 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 291 of file lib.php.

inject_rowspans ( &$  element)

Definition at line 220 of file lib.php.

Here is the caller 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

Build table structure

Print out the table data

Definition at line 521 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 576 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 574 of file lib.php.

Prepares the headers and attributes of the flexitable.

Definition at line 239 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$baseurl

base url for sorting by first/last name.

Reimplemented from grade_report.

Definition at line 149 of file lib.php.

$canviewhidden

Definition at line 139 of file lib.php.

$decimals = 2

Definition at line 104 of file lib.php.

$evenodd

Definition at line 137 of file lib.php.

$gseq

Flat structure similar to grade tree

Definition at line 77 of file lib.php.

$gtree

The grade_tree object.

Reimplemented from grade_report.

Definition at line 72 of file lib.php.

$maxdepth

Definition at line 136 of file lib.php.

$pbarurl

base url for paging.

Reimplemented from grade_report.

Definition at line 150 of file lib.php.

$rangedecimals = 0

Definition at line 110 of file lib.php.

$showaverage = false

Definition at line 134 of file lib.php.

$showfeedback = true

Definition at line 116 of file lib.php.

$showgrade = true

Definition at line 98 of file lib.php.

$showhiddenitems

Show hidden items even when user does not have required cap

Definition at line 146 of file lib.php.

$showlettergrade = false

Definition at line 128 of file lib.php.

$showpercentage

show grade percentages

Definition at line 87 of file lib.php.

$showrange = true

Show range

Definition at line 92 of file lib.php.

$showrank

show student ranks

Definition at line 82 of file lib.php.

$showtotalsifcontainhidden

Definition at line 147 of file lib.php.

$showweight = false

Definition at line 122 of file lib.php.

Definition at line 141 of file lib.php.

A flexitable to hold the data.

Definition at line 48 of file lib.php.

$tablecolumns = array()

Definition at line 60 of file lib.php.

$tabledata = array()

Definition at line 66 of file lib.php.

$tableheaders = array()

Definition at line 54 of file lib.php.

The user.

Definition at line 42 of file lib.php.


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