url type form element
More...
|
| __construct ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| Constructor.
|
|
| export_for_template (renderer_base $output) |
|
| get_force_ltr () |
| Get force LTR option.
|
|
| getElementTemplateType () |
| Slightly different container template when frozen.
|
|
| getFilePickerHTML () |
|
| getHelpButton () |
| get html for help button
|
|
| MoodleQuickForm_url ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| Old syntax of class constructor.
|
|
| setHiddenLabel ($hiddenLabel) |
| Sets label to be hidden.
|
|
| toHtml () |
| Returns HTML for this form element.
|
|
|
string | $_helpbutton ='' |
| html for help button, if empty then no help
|
|
bool | $_hiddenLabel =false |
| if true label will be hidden
|
|
|
| get_filepicker_unique_id () |
| Returns the unique id of the file picker associated with this url element, setting it in the process if not set.
|
|
|
array | $_options |
| data which need to be posted.
|
|
string | $filepickeruniqueid |
| the unique id of the filepicker, if enabled.
|
|
url type form element
HTML class for a url type element
- Copyright
- 2009 Dongsheng Cai dongs.nosp@m.heng.nosp@m.@mood.nosp@m.le.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
MoodleQuickForm_url::__construct |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null, |
|
|
| $options = null ) |
Constructor.
- Parameters
-
string | $elementName | Element name |
mixed | $elementLabel | Label(s) for an element |
mixed | $attributes | Either a typical HTML attribute string or an associative array. |
array | $options | data which need to be posted. |
◆ get_filepicker_unique_id()
MoodleQuickForm_url::get_filepicker_unique_id |
( |
| ) |
|
|
protected |
Returns the unique id of the file picker associated with this url element, setting it in the process if not set.
- Return values
-
string | the unique id of the file picker. |
◆ get_force_ltr()
MoodleQuickForm_url::get_force_ltr |
( |
| ) |
|
Get force LTR option.
- Return values
-
◆ getElementTemplateType()
MoodleQuickForm_url::getElementTemplateType |
( |
| ) |
|
Slightly different container template when frozen.
Don't want to use a label tag with a for attribute in that case for the element label but instead use a div. Templates are defined in renderer constructor.
- Return values
-
◆ getHelpButton()
MoodleQuickForm_url::getHelpButton |
( |
| ) |
|
get html for help button
- Return values
-
string | html for help button |
◆ MoodleQuickForm_url()
MoodleQuickForm_url::MoodleQuickForm_url |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null, |
|
|
| $options = null ) |
◆ setHiddenLabel()
MoodleQuickForm_url::setHiddenLabel |
( |
| $hiddenLabel | ) |
|
Sets label to be hidden.
- Parameters
-
bool | $hiddenLabel | sets if label should be hidden |
◆ toHtml()
MoodleQuickForm_url::toHtml |
( |
| ) |
|
Returns HTML for this form element.
- Return values
-
The documentation for this class was generated from the following file: