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

Public Member Functions

 define_form_specific (&$form)
 define_validate_specific ($data, $files)
 define_save_preprocess ($data)

Detailed Description

Definition at line 3 of file define.class.php.


Member Function Documentation

define_form_specific ( &$  form)

Prints out the form snippet for the part of creating or editing a profile field specific to the current data type

Parameters:
objectinstance of the moodleform class

Param 1 for menu type contains the options

Default data

do nothing - overwrite if necessary

Reimplemented from profile_define_base.

Definition at line 5 of file define.class.php.

Preprocess data from the add/edit profile field form before it is saved. This method is a hook for the child classes to overwrite.

Parameters:
objectdata from the add/edit profile field form
Returns:
object processed data object

do nothing - overwrite if necessary

Reimplemented from profile_define_base.

Definition at line 33 of file define.class.php.

define_validate_specific ( data,
files 
)

Validate the data from the add/edit profile field form that is specific to the current data type

Parameters:
objectdata from the add/edit profile field form
Returns:
array associative array of error messages

Check that we have at least 2 options

Check the default data exists in the options

do nothing - overwrite if necessary

Reimplemented from profile_define_base.

Definition at line 15 of file define.class.php.


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