Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(no description)

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

Defines 2 classes

HTML_QuickForm_static:: (2 methods):
  __construct()
  HTML_QuickForm_static()

name:: (8 methods):
  setName()
  getName()
  setText()
  setValue()
  toHtml()
  getFrozenHtml()
  onQuickFormEvent()
  exportValue()


Class: HTML_QuickForm_static  - X-Ref

HTML class for static data

__construct($elementName=null, $elementLabel=null, $text=null)   X-Ref
Class constructor

param: string    $elementLabel   (optional)Label
param: string    $text           (optional)Display text
return: void

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


Class: name  - X-Ref

setName($name)   X-Ref
Sets the element name

param: string    $name   Element name
return: void

getName()   X-Ref
Returns the element name

return: string

setText($text)   X-Ref
Sets the text

param: string    $text
return: void

setValue($text)   X-Ref
Sets the text (uses the standard setValue call to emulate a form element.

param: string    $text
return: void

toHtml()   X-Ref
Returns the static text element in HTML

return: string

getFrozenHtml()   X-Ref
Returns the value of field without HTML tags

return: string

onQuickFormEvent($event, $arg, &$caller)   X-Ref
Called by HTML_QuickForm whenever form event is made on this element

param: string    $event  Name of event
param: mixed     $arg    event arguments
param: object    $caller calling object
return: void

exportValue(&$submitValues, $assoc = false)   X-Ref
We override this here because we don't want any values from static elements