Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

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

Defines 2 classes

HTML_QuickForm_Renderer:: (2 methods):
  __construct()
  HTML_QuickForm_Renderer()

name:: (8 methods):
  startForm()
  finishForm()
  renderHeader()
  renderElement()
  renderHidden()
  renderHtml()
  startGroup()
  finishGroup()


Class: HTML_QuickForm_Renderer  - X-Ref

An abstract base class for QuickForm renderers

The class implements a Visitor design pattern

__construct()   X-Ref
Constructor


HTML_QuickForm_Renderer()   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


Class: name  - X-Ref

startForm(&$form)   X-Ref
Called when visiting a form, before processing any form elements

return: void
param: object    An HTML_QuickForm object being visited

finishForm(&$form)   X-Ref
Called when visiting a form, after processing all form elements

return: void
param: object     An HTML_QuickForm object being visited

renderHeader(&$header)   X-Ref
Called when visiting a header element

return: void
param: object     An HTML_QuickForm_header element being visited

renderElement(&$element, $required, $error)   X-Ref
Called when visiting an element

return: void
param: object     An HTML_QuickForm_element object being visited
param: bool       Whether an element is required
param: string     An error message associated with an element

renderHidden(&$element)   X-Ref
Called when visiting a hidden element

return: void
param: object     An HTML_QuickForm_hidden object being visited

renderHtml(&$data)   X-Ref
Called when visiting a raw HTML/text pseudo-element

Seems that this should not be used when using a template-based renderer

return: void
param: object     An HTML_QuickForm_html element being visited

startGroup(&$group, $required, $error)   X-Ref
Called when visiting a group, before processing any group elements

return: void
param: object     An HTML_QuickForm_group object being visited
param: bool       Whether a group is required
param: string     An error message associated with a group

finishGroup(&$group)   X-Ref
Called when visiting a group, after processing all group elements

return: void
param: object     An HTML_QuickForm_group object being visited