/** * Class constructor * * @param string Input field name attribute * @param string Input field label * @param mixed (optional)Either a typical HTML attribute string * or an associative array + the path where the final image will be uploaded * @since 1.0 * @access public */ function HTML_QuickForm_imagefile($elementName = null, $elementLabel = null, $attributes = null, $path = null) { $this->_imagepath = $path; HTML_QuickForm_file::HTML_QuickForm_file($elementName, $elementLabel, $attributes); $this->setType('file'); if (!$this->attributes['showimage']) { $this->updateAttributes(array('showimage' => false)); } else { $this->updateAttributes(array('showimage' => true)); } }
/** * Constructor * * @param string $elementName (optional) name of the editor * @param string $elementLabel (optional) editor label * @param array $attributes (optional) Either a typical HTML attribute string * or an associative array */ function MoodleQuickForm_file($elementName = null, $elementLabel = null, $attributes = null) { debugging('file forms element is deprecated, please use new filepicker instead'); parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes); }
function MoodleQuickForm_file($elementName = null, $elementLabel = null, $attributes = null) { parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes); }
function HTML_QuickForm_webcam($elementName = null, $elementLabel = null, $attributes = null, $properties = array()) { if (isset($elementName)) { parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes); } }