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

Public Member Functions

 definition ()
 definition_after_data ()
 data_preprocessing (&$default_values)
 add_completion_rules ()
 completion_rule_enabled ($data)
 get_data ()

Detailed Description

Definition at line 8 of file mod_form.php.


Member Function Documentation

Can be overridden to add custom completion rules if the module wishes them. If overriding this, you should also override completion_rule_enabled.

Just add elements to the form as needed and return the list of IDs. The system will call disabledIf and handle other behaviour for each returned ID.

Returns:
array Array of string IDs of added items, empty array if none

Reimplemented from moodleform_mod.

Definition at line 170 of file mod_form.php.

Definition at line 183 of file mod_form.php.

data_preprocessing ( &$  default_values)

Only available on moodleform_mod.

Parameters:
array$default_valuespassed by reference

Reimplemented from moodleform_mod.

Definition at line 157 of file mod_form.php.

Abstract method - always override!

Reimplemented from moodleform.

Definition at line 10 of file mod_form.php.

Here is the call graph for this function:

Each module which defines definition_after_data() must call this method using parent::definition_after_data();

Reimplemented from moodleform_mod.

Definition at line 138 of file mod_form.php.

get_data ( )

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

note: $slashed param removed

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

Reimplemented from moodleform.

Definition at line 187 of file mod_form.php.


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