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

Public Member Functions

 __construct ($submiturl, $cm, $quiz, $context, $groupmode, $override)
 validation ($data, $files)

Protected Member Functions

 definition ()

Protected Attributes

 $cm
 $quiz
 $context
 $groupmode
 $groupid
 $userid

Detailed Description

Form for editing settings overrides.

Definition at line 38 of file override_form.php.


Constructor & Destructor Documentation

__construct ( submiturl,
cm,
quiz,
context,
groupmode,
override 
)

Definition at line 47 of file override_form.php.

Here is the call graph for this function:


Member Function Documentation

definition ( ) [protected]

Abstract method - always override!

Reimplemented from moodleform.

Definition at line 60 of file override_form.php.

Here is the call 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 200 of file override_form.php.


Field Documentation

$cm [protected]

Definition at line 40 of file override_form.php.

$context [protected]

Definition at line 42 of file override_form.php.

$groupid [protected]

Definition at line 44 of file override_form.php.

$groupmode [protected]

Definition at line 43 of file override_form.php.

$quiz [protected]

Definition at line 41 of file override_form.php.

$userid [protected]

Definition at line 45 of file override_form.php.


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