◆ __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. |
◆ export_for_template()
MoodleQuickForm_url::export_for_template |
( |
renderer_base |
$output | ) |
|
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
- No complex types - only stdClass, array, int, string, float, bool
- Any additional info that is required for the template is pre-calculated (e.g. capability checks).
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implements templatable.
◆ 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 |
|
) |
| |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ 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: