|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| custom_definition () | |
| is_standard () | |
| definition () | |
| construction_override () | |
Data Fields | |
| $qtype | |
| $qtypestring | |
Protected Member Functions | |
| add_jumpto ($name, $label=null, $selected=LESSON_NEXTPAGE) | |
| add_score ($name, $label=null, $value=null) | |
| add_answer ($count, $label=NULL, $required=false) | |
| add_response ($count, $label=NULL, $required=false) | |
Protected Attributes | |
| $editoroptions = array() | |
| $standard = true | |
Abstract class that page type's MUST inherit from.
This is the abstract class that ALL add page type forms must extend. You will notice that all but two of the methods this class contains are final. Essentially the only thing that extending classes can do is extend custom_definition. OR if it has a special requirement on creation it can extend construction_override
Definition at line 664 of file locallib.php.
| add_answer | ( | $ | count, |
| $ | label = NULL, |
||
| $ | required = false |
||
| ) | [final, protected] |
Convenience function: Adds an answer editor
| int | $count | The count of the element to add |
| string | $label,NULL | means default |
| bool | $required |
Definition at line 796 of file locallib.php.

| add_jumpto | ( | $ | name, |
| $ | label = null, |
||
| $ | selected = LESSON_NEXTPAGE |
||
| ) | [final, protected] |
Convenience function: Adds a jumpto select element
| string | $name | |
| string | null | $label | |
| int | $selected | The page to select by default |
Definition at line 755 of file locallib.php.

| add_response | ( | $ | count, |
| $ | label = NULL, |
||
| $ | required = false |
||
| ) | [final, protected] |
Convenience function: Adds an response editor
| int | $count | The count of the element to add |
| string | $label,NULL | means default |
| bool | $required |
Definition at line 814 of file locallib.php.

| add_score | ( | $ | name, |
| $ | label = null, |
||
| $ | value = null |
||
| ) | [final, protected] |
Convenience function: Adds a score input element
| string | $name | |
| string | null | $label | |
| mixed | $value | The default value |
Definition at line 775 of file locallib.php.

A function that gets called upon init of this object by the calling script.
This can be used to process an immediate action if required. Currently it is only used in special cases by non-standard page types.
Definition at line 833 of file locallib.php.
Each page type can and should override this to add any custom elements to the basic form that they want
Reimplemented in lesson_add_page_form_matching, lesson_add_page_form_multichoice, lesson_add_page_form_truefalse, lesson_add_page_form_shortanswer, lesson_add_page_form_branchtable, lesson_add_page_form_essay, lesson_add_page_form_numerical, lesson_add_page_form_endofbranch, lesson_add_page_form_endofcluster, lesson_add_page_form_cluster, and lesson_add_page_form_selection.
Definition at line 696 of file locallib.php.

| definition | ( | ) | [final] |
Add the required basic elements to the form.
This method adds the basic elements to the form including title and contents and then calls custom_definition();
Reimplemented from moodleform.
Definition at line 712 of file locallib.php.

| is_standard | ( | ) | [final] |
Used to determine if this is a standard page or a special page
Definition at line 702 of file locallib.php.
$editoroptions = array() [protected] |
Definition at line 683 of file locallib.php.
| $qtype |
Reimplemented in lesson_add_page_form_matching, lesson_add_page_form_multichoice, lesson_add_page_form_truefalse, lesson_add_page_form_shortanswer, lesson_add_page_form_branchtable, lesson_add_page_form_essay, lesson_add_page_form_numerical, lesson_add_page_form_endofbranch, lesson_add_page_form_endofcluster, lesson_add_page_form_cluster, and lesson_add_page_form_selection.
Definition at line 671 of file locallib.php.
| $qtypestring |
Reimplemented in lesson_add_page_form_matching, lesson_add_page_form_multichoice, lesson_add_page_form_truefalse, lesson_add_page_form_shortanswer, lesson_add_page_form_branchtable, lesson_add_page_form_essay, lesson_add_page_form_numerical, lesson_add_page_form_endofbranch, lesson_add_page_form_endofcluster, lesson_add_page_form_cluster, and lesson_add_page_form_selection.
Definition at line 677 of file locallib.php.
$standard = true [protected] |
Reimplemented in lesson_add_page_form_branchtable, lesson_add_page_form_endofbranch, lesson_add_page_form_endofcluster, lesson_add_page_form_cluster, and lesson_add_page_form_selection.
Definition at line 690 of file locallib.php.