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

Public Member Functions

 definition ()

Protected Member Functions

 definition_inner (&$mform)

Protected Attributes

 $strategy

Detailed Description

Base class for editing all the strategy grading forms.

This defines the common fields that all strategy grading forms need. Strategies should define their own class that inherits from this one, and implements the definition_inner() method.

moodleform

Definition at line 40 of file edit_form.php.


Member Function Documentation

Add the fields that are common for all grading strategies.

If the strategy does not support all these fields, then you can override this method and remove the ones you don't want with $mform->removeElement(). Stretegy subclassess should define their own fields in definition_inner()

Returns:
void

Reimplemented from moodleform.

Definition at line 55 of file edit_form.php.

Here is the call graph for this function:

definition_inner ( &$  mform) [protected]

Add any strategy specific form fields.

Parameters:
stdClass$mformthe form being built.

Reimplemented in workshop_edit_rubric_strategy_form, workshop_edit_accumulative_strategy_form, workshop_edit_comments_strategy_form, and workshop_edit_numerrors_strategy_form.

Definition at line 90 of file edit_form.php.

Here is the caller graph for this function:


Field Documentation

$strategy [protected]

strategy logic instance that this class is editor of

Definition at line 43 of file edit_form.php.


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