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

Public Member Functions

 definition ()
 definition_after_data ()
 validation ($data, $files)
 get_data ()
 need_confirm_regrading ($controller)

Protected Member Functions

findButton ($elementname)

Detailed Description

Defines the rubric edit form

Definition at line 36 of file edit_form.php.


Member Function Documentation

Form element definition

Reimplemented from moodleform.

Definition at line 41 of file edit_form.php.

Here is the call graph for this function:

Setup the form depending on current values. This method is called after definition(), data submission and set_data(). All form setup that is dependent on form values should go in here.

We remove the element status if there is no current status (i.e. rubric is only being created) so the users do not get confused

Reimplemented from moodleform.

Definition at line 91 of file edit_form.php.

Here is the call graph for this function:

& findButton ( elementname) [protected]

Returns a form element (submit button) with the name $elementname

Parameters:
string$elementname
Returns:
HTML_QuickForm_element

Definition at line 204 of file edit_form.php.

Here is the caller graph for this function:

get_data ( )

Return submitted data if properly submitted or returns NULL if validation fails or if there is no submitted data.

Returns:
object submitted data; NULL if not valid or not submitted or cancelled

Reimplemented from moodleform.

Definition at line 140 of file edit_form.php.

Here is the caller graph for this function:

need_confirm_regrading ( controller)

Check if there are changes in the rubric and it is needed to ask user whether to mark the current grades for re-grading. User may confirm re-grading and continue, return to editing or cancel the changes

Parameters:
gradingform_rubric_controller$controller

Definition at line 157 of file edit_form.php.

Here is the call graph for this function:

validation ( data,
files 
)

Form vlidation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.

Parameters:
array$dataarray of ("fieldname"=>value) of submitted data
array$filesarray of uploaded files "element_name"=>tmp_file_path
Returns:
array of "element_name"=>"error_description" if there are errors, or an empty array if everything is OK (true allowed for backwards compatibility too).

Reimplemented from moodleform.

Definition at line 114 of file edit_form.php.


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