Differences Between: [Versions 310 and 400] [Versions 39 and 400] [Versions 400 and 403]
This file contains the generic moodleform bridge for the backup user interface as well as the individual forms that relate to the different stages the user interface can exist within.
Copyright: | 2010 Sam Hemelryk |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 424 lines (18 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
base_moodleform:: (15 methods):
__construct()
definition()
definition_after_data()
close_task_divs()
add_setting()
add_settings()
add_heading()
add_html_formatting()
add_fixed_setting()
add_dependencies()
is_cancelled()
remove_element()
get_element()
display()
require_definition_after_data()
Class: base_moodleform - X-Ref
Base moodleform bridge__construct(base_ui_stage $uistage, $action = null, $customdata = null, $method = 'post',$target = '', $attributes = null, $editable = true) X-Ref |
Creates the form param: base_ui_stage $uistage param: moodle_url|string $action param: mixed $customdata param: string $method get|post param: string $target param: array $attributes param: bool $editable |
definition() X-Ref |
The standard form definition... obviously not much here |
definition_after_data() X-Ref |
Definition applied after the data is organised.. why's it here? because I want to add elements on the fly. |
close_task_divs() X-Ref |
Closes any open divs |
add_setting(backup_setting $setting, base_task $task = null) X-Ref |
Adds the backup_setting as a element to the form return: bool param: backup_setting $setting param: base_task $task |
add_settings(array $settingstasks) X-Ref |
Adds multiple backup_settings as elements to the form return: bool param: array $settingstasks Consists of array($setting, $task) elements |
add_heading($name , $text) X-Ref |
Adds a heading to the form param: string $name param: string $text |
add_html_formatting(backup_setting $setting) X-Ref |
Adds HTML formatting for the given backup setting, needed to group/segment correctly. param: backup_setting $setting |
add_fixed_setting(backup_setting $setting, base_task $task) X-Ref |
Adds a fixed or static setting to the form param: backup_setting $setting param: base_task $task |
add_dependencies(backup_setting $setting) X-Ref |
Adds dependencies to the form recursively param: backup_setting $setting |
is_cancelled() X-Ref |
Returns true if the form was cancelled, false otherwise return: bool |
remove_element($elementname) X-Ref |
Removes an element from the form if it exists return: bool param: string $elementname |
get_element($elementname) X-Ref |
Gets an element from the form if it exists return: HTML_QuickForm_input|MoodleQuickForm_group param: string $elementname |
display() X-Ref |
Displays the form |
require_definition_after_data() X-Ref |
Ensures the the definition after data is loaded |