[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/form/ -> filepicker.php (summary)

Filepicker form element Contains HTML class for a single filepicker form element

Copyright: 2009 Dongsheng Cai <dongsheng@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 223 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MoodleQuickForm_filepicker:: (6 methods):
  __construct()
  MoodleQuickForm_filepicker()
  getHelpButton()
  getElementTemplateType()
  toHtml()
  exportValue()


Class: MoodleQuickForm_filepicker  - X-Ref

Filepicker form element

HTML class for a single filepicker element (based on button)

__construct($elementName=null, $elementLabel=null, $attributes=null, $options=null)   X-Ref
Constructor

param: string $elementName (optional) name of the filepicker
param: string $elementLabel (optional) filepicker label
param: array $attributes (optional) Either a typical HTML attribute string
param: array $options set of options to initalize filepicker

MoodleQuickForm_filepicker($elementName=null, $elementLabel=null, $attributes=null, $options=null)   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


getHelpButton()   X-Ref
Returns html for help button.

return: string html for help button

getElementTemplateType()   X-Ref
Returns type of filepicker element

return: string

toHtml()   X-Ref
Returns HTML for filepicker form element.

return: string

exportValue(&$submitValues, $assoc = false)   X-Ref
export uploaded file

param: array $submitValues values submitted.
param: bool $assoc specifies if returned array is associative
return: array



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1