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

Public Member Functions

 grade_seq ($courseid, $category_grade_last=false, $nooutcomes=false)
 flatten (&$element, $category_grade_last, $nooutcomes)
 locate_element ($eid)

Data Fields

 $elements

Detailed Description

Definition at line 1564 of file lib.php.


Member Function Documentation

flatten ( &$  element,
category_grade_last,
nooutcomes 
)

Static recursive helper - makes the grade_item for category the last children

Parameters:
array&$elementThe seed of the recursion
bool$category_grade_lastcategory grade item is the last child
bool$nooutcomesWhether or not outcomes should be included
Returns:
array

Definition at line 1604 of file lib.php.

Here is the caller graph for this function:

grade_seq ( courseid,
category_grade_last = false,
nooutcomes = false 
)

Constructor, retrieves and stores array of all grade_category and grade_item objects for the given courseid. Full objects are instantiated. Ordering sequence is fixed if needed.

Parameters:
int$courseidThe course id
bool$category_grade_lastcategory grade item is the last child
bool$nooutcomesWhether or not outcomes should be included

Definition at line 1579 of file lib.php.

Here is the call graph for this function:

locate_element ( eid)

Parses the array in search of a given eid and returns a element object with information about the element it has found.

Parameters:
int$eidGradetree Element ID
Returns:
object element

Definition at line 1645 of file lib.php.

Here is the call graph for this function:


Field Documentation

$elements

1D array of elements

Definition at line 1569 of file lib.php.


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