Textarea type form element.
More...
|
| | __construct ($elementName=null, $elementLabel=null, $attributes=null) |
| | constructor
|
| |
|
| export_for_template (renderer_base $output) |
| |
| | get_force_ltr () |
| | Get force LTR option.
|
| |
| | getElementTemplateType () |
| | Slightly different container template when frozen.
|
| |
| | getHelpButton () |
| | get html for help button
|
| |
| | MoodleQuickForm_textarea ($elementName=null, $elementLabel=null, $attributes=null) |
| | Old syntax of class constructor.
|
| |
| | onQuickFormEvent ($event, $arg, &$caller) |
| | Called by HTML_QuickForm whenever form event is made on this element.
|
| |
| | set_force_ltr ($value) |
| | Force the field to flow left-to-right.
|
| |
| | setHiddenLabel ($hiddenLabel) |
| | Sets label to be hidden.
|
| |
| | toHtml () |
| | Returns HTML for this form element.
|
| |
|
|
string | $_formid = '' |
| | Need to store id of form as we may need it for helpbutton.
|
| |
|
string | $_helpbutton ='' |
| | html for help button, if empty then no help
|
| |
|
bool | $_hiddenLabel =false |
| | if true label will be hidden
|
| |
|
|
bool | $forceltr = false |
| | Whether to force the display of this element to flow LTR.
|
| |
Textarea type form element.
HTML class for a textarea type element
- Copyright
- 2006 Jamie Pratt me@ja.nosp@m.miep.nosp@m..org
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
| MoodleQuickForm_textarea::__construct |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
constructor
- Parameters
-
| string | $elementName | (optional) name of the text field |
| string | $elementLabel | (optional) text field label |
| string | $attributes | (optional) Either a typical HTML attribute string or an associative array |
Reimplemented in MoodleQuickForm_wikieditor.
◆ get_force_ltr()
| MoodleQuickForm_textarea::get_force_ltr |
( |
| ) |
|
Get force LTR option.
- Return values
-
◆ getElementTemplateType()
| MoodleQuickForm_textarea::getElementTemplateType |
( |
| ) |
|
Slightly different container template when frozen.
- Return values
-
◆ getHelpButton()
| MoodleQuickForm_textarea::getHelpButton |
( |
| ) |
|
get html for help button
- Return values
-
| string | html for help button |
◆ MoodleQuickForm_textarea()
| MoodleQuickForm_textarea::MoodleQuickForm_textarea |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
◆ onQuickFormEvent()
| MoodleQuickForm_textarea::onQuickFormEvent |
( |
| $event, |
|
|
| $arg, |
|
|
& | $caller ) |
Called by HTML_QuickForm whenever form event is made on this element.
- Parameters
-
| string | $event | Name of event |
| mixed | $arg | event arguments |
| object | $caller | calling object |
◆ set_force_ltr()
| MoodleQuickForm_textarea::set_force_ltr |
( |
| $value | ) |
|
Force the field to flow left-to-right.
This is useful for fields such as code or configuration snippets.
- Parameters
-
| bool | $value | The value to set the option to. |
◆ setHiddenLabel()
| MoodleQuickForm_textarea::setHiddenLabel |
( |
| $hiddenLabel | ) |
|
Sets label to be hidden.
- Parameters
-
| bool | $hiddenLabel | sets if label should be hidden |
◆ toHtml()
| MoodleQuickForm_textarea::toHtml |
( |
| ) |
|
The documentation for this class was generated from the following file: