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

Public Member Functions

 definition ()
 validation ($data, $files)
 extend_assignable_roles ($context, $defaultrole)

Detailed Description

Definition at line 32 of file edit_form.php.


Member Function Documentation

Abstract method - always override!

Reimplemented from moodleform.

Definition at line 34 of file edit_form.php.

Here is the call graph for this function:

extend_assignable_roles ( context,
defaultrole 
)

Gets a list of roles that this user can assign for the course as the default for self-enrolment

Parameters:
context$contextthe context.
integer$defaultrolethe id of the role that is set as the default for self-enrolement
Returns:
array index is the role id, value is the role name

Definition at line 167 of file edit_form.php.

Here is the call graph for this function:

Here is the caller graph for this function:

validation ( data,
files 
)

Dummy stub method - override if you needed to perform some extra validation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.

Server side rules do not work for uploaded files, implement serverside rules here if needed.

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 119 of file edit_form.php.

Here is the call graph for this function:


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