Filepicker form element.
More...
|
| __construct ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| Constructor.
|
|
| export_for_template (renderer_base $output) |
|
| exportValue (&$submitValues, $assoc=false) |
| export uploaded file
|
|
| getElementTemplateType () |
| Returns type of filepicker element.
|
|
| getHelpButton () |
| Returns html for help button.
|
|
| MoodleQuickForm_filepicker ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| Old syntax of class constructor.
|
|
| toHtml () |
| Returns HTML for filepicker form element.
|
|
| validateSubmitValue ($value) |
| Check that the file has the allowed type.
|
|
|
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
|
|
Filepicker form element.
HTML class for a single filepicker element (based on button)
- 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_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 |
◆ 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 ) |
◆ 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: