|
string | $_helpbutton = '' |
| html for help button, if empty then no help will icon will be dispalyed.
|
|
|
array | $_options = array('maxbytes'=>0, 'accepted_types'=>'*', 'return_types'=>null) |
| options provided to initalize filemanager
|
|
◆ __construct()
MoodleQuickForm_filepicker::__construct |
( |
|
$elementName = null , |
|
|
|
$elementLabel = null , |
|
|
|
$attributes = null , |
|
|
|
$options = null |
|
) |
| |
Constructor.
- Parameters
-
string | $elementName | (optional) name of the filepicker |
string | $elementLabel | (optional) filepicker label |
array | $attributes | (optional) Either a typical HTML attribute string or an associative array |
array | $options | set of options to initalize filepicker |
◆ export_for_template()
MoodleQuickForm_filepicker::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.
◆ exportValue()
MoodleQuickForm_filepicker::exportValue |
( |
& |
$submitValues, |
|
|
|
$assoc = false |
|
) |
| |
export uploaded file
- Parameters
-
array | $submitValues | values submitted. |
bool | $assoc | specifies if returned array is associative |
- Return values
-
◆ getElementTemplateType()
MoodleQuickForm_filepicker::getElementTemplateType |
( |
| ) |
|
Returns type of filepicker element.
- Return values
-
◆ getHelpButton()
MoodleQuickForm_filepicker::getHelpButton |
( |
| ) |
|
Returns html for help button.
- Return values
-
string | html for help button |
◆ MoodleQuickForm_filepicker()
MoodleQuickForm_filepicker::MoodleQuickForm_filepicker |
( |
|
$elementName = null , |
|
|
|
$elementLabel = null , |
|
|
|
$attributes = null , |
|
|
|
$options = null |
|
) |
| |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ toHtml()
MoodleQuickForm_filepicker::toHtml |
( |
| ) |
|
Returns HTML for filepicker form element.
- Return values
-
◆ validateSubmitValue()
MoodleQuickForm_filepicker::validateSubmitValue |
( |
|
$value | ) |
|
Check that the file has the allowed type.
- Parameters
-
array | $value | Draft item id with the uploaded files. |
- Return values
-
string|null | Validation error message or null. |
The documentation for this class was generated from the following file: