|
| | __construct ($formName, $method, $action, $target='', $attributes=null, $ajaxformdata=null) |
| | Class constructor - same parameters as HTML_QuickForm_DHTMLRulesTableless.
|
| |
| | accept (&$renderer) |
| | Accepts a renderer.
|
| |
| | addAdvancedStatusElement ($headerid, $showmore=false) |
| | Use this method to add show more/less status element required for passing over the advanced elements visibility status on the form submission.
|
| |
| | addGroupRule ($group, $arg1, $type='', $format=null, $howmany=0, $validation='server', $reset=false) |
| | Adds a validation rule for the given group of elements.
|
| |
| | addHelpButton ($elementname, $identifier, $component='moodle', $linktext='', $suppresscheck=false) |
| | Add a help button to element, only one button per element is allowed.
|
| |
| | addRule ($element, $message, $type, $format=null, $validation='server', $reset=false, $force=false) |
| | Adds a validation rule for the given field.
|
| |
| | closeHeaderBefore ($elementName) |
| | Adds one or more element names that indicate the end of a fieldset.
|
| |
|
| disable_form_change_checker () |
| | Call this method if you don't want the formchangechecker JavaScript to be automatically initialised for this form.
|
| |
| | enable_form_change_checker () |
| | If you have called disable_form_change_checker() then you can use this method to re-enable it.
|
| |
| | exportValues ($elementList=null) |
| | export submitted values
|
| |
| | getAdvancedHTML () |
| | Returns HTML for advanced elements.
|
| |
| | getCleanedValue ($value, $type) |
| | Return the cleaned value using the passed type(s).
|
| |
| | getCleanType ($elementname, $value, $default=PARAM_RAW) |
| | Return the type(s) to use to clean an element.
|
| |
| | getReqHTML () |
| | Returns HTML for required elements.
|
| |
| | getShowAdvanced () |
| | This function has been deprecated.
|
| |
| | getValidationScript () |
| | Returns the client side validation script.
|
| |
| | is_dirty () |
| | Is the form currently set to dirty?
|
| |
| | is_form_change_checker_enabled () |
| |
| | MoodleQuickForm ($formName, $method, $action, $target='', $attributes=null) |
| | Old syntax of class constructor.
|
| |
| | optional_param ($name, $default, $type) |
| | Checks if a parameter was passed in the previous form submission.
|
| |
| | set_initial_dirty_state ($state=false) |
| | Set the initial 'dirty' state of the form.
|
| |
| | setAdvanced ($elementName, $advanced=true) |
| | Use this method to indicate an element in a form is an advanced field.
|
| |
| | setConstant ($elname, $value) |
| | Set constant value not overridden by _POST or _GET note: this does not work for complex names with [] :-(.
|
| |
| | setDefault ($elementName, $defaultValue) |
| | Initializes a default form value.
|
| |
| | setDisableShortforms ($disable=true) |
| | Use this method to indicate that the form will not be using shortforms.
|
| |
| | setExpanded ($headername, $expanded=true, $ignoreuserstate=false) |
| | Use this method to indicate that the fieldset should be shown as expanded.
|
| |
| | setForceLtr ($elementname, $value=true) |
| | Set an element to be forced to flow LTR.
|
| |
| | setShowAdvanced ($showadvancedNow=null) |
| | This function has been deprecated.
|
| |
| | setType ($elementname, $paramtype) |
| | Should be used for all elements of a form except for select, radio and checkboxes which clean their own data.
|
| |
| | setTypes ($paramtypes) |
| | This can be used to set several types at once.
|
| |
| | updateSubmission ($submission, $files) |
| | Updates submitted values.
|
| |
|
| array | $_advancedElements = array() |
| | Array whose keys are element names.
|
| |
|
array | $_cancelButtons =array() |
| | Array of buttons that if pressed do not result in the processing of the form.
|
| |
| array | $_collapsibleElements = array() |
| | Array whose keys are element names and values are the desired collapsible state.
|
| |
|
array | $_dependencies = array() |
| | dependent state for the element/'s
|
| |
|
boolean | $_disableShortforms = false |
| | Whether to enable shortforms for this form.
|
| |
|
string | $_formName = '' |
| | The form name is derived from the class name of the wrapper minus the trailing form It is a name with words joined by underscores whereas the id attribute is words joined by underscores.
|
| |
|
array | $_noSubmitButtons =array() |
| | Array of buttons that if pressed do not result in the processing of the form.
|
| |
| string | $_pageparams = '' |
| | String with the html for hidden params passed in as part of a moodle_url object for the action.
|
| |
|
array | $_types = array() |
| | type (PARAM_INT, PARAM_TEXT etc) of element value
|
| |
|
const | DEP_DISABLE = 0 |
| | Is this a 'disableIf' dependency ?
|
| |
|
const | DEP_HIDE = 1 |
| | Is this a 'hideIf' dependency?
|
| |