Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 153 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

HTML_QuickForm_xbutton:: (2 methods):
  __construct()
  HTML_QuickForm_xbutton()

name:: (10 methods):
  toHtml()
  getFrozenHtml()
  freeze()
  setName()
  getName()
  setValue()
  getValue()
  setContent()
  onQuickFormEvent()
  exportValue()


Class: HTML_QuickForm_xbutton  - X-Ref

Class for HTML 4.0 <button> element

__construct($elementName = null, $elementContent = null, $attributes = null)   X-Ref
Class constructor

param: string  Button name
param: string  Button content (HTML to add between <button></button> tags)
param: mixed   Either a typical HTML attribute string or an associative array

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


Class: name  - X-Ref

toHtml()   X-Ref
No description

getFrozenHtml()   X-Ref
No description

freeze()   X-Ref
No description

setName($name)   X-Ref
No description

getName()   X-Ref
No description

setValue($value)   X-Ref
No description

getValue()   X-Ref
No description

setContent($content)   X-Ref
Sets the contents of the button element

param: string  Button content (HTML to add between <button></button> tags)

onQuickFormEvent($event, $arg, &$caller)   X-Ref
No description

exportValue(&$submitValues, $assoc = false)   X-Ref
Returns a 'safe' element's value

The value is only returned if the button's type is "submit" and if this
particlular button was clicked