Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

A renderer for HTML_QuickForm that only uses XHTML and CSS but no table tags PHP versions 4 and 5

Author: Alexey Borzov <borz_off@cs.msu.su>
Author: Adam Daniel <adaniel1@eesus.jnj.com>
Author: Bertrand Mansion <bmansion@mamasam.com>
Author: Mark Wiesemann <wiesemann@php.net>
Copyright: 2005-2006 The PHP Group
License: http://www.php.net/license/3_01.txt PHP License 3.01
Version: CVS: $Id$
File Size: 330 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

HTML_QuickForm_Renderer_Tableless:: (2 methods):
  __construct()
  HTML_QuickForm_Renderer_Tableless()

name:: (8 methods):
  renderHeader()
  renderElement()
  startForm()
  finishForm()
  setOpenFieldsetTemplate()
  setOpenHiddenFieldsetTemplate()
  setCloseFieldsetTemplate()
  addStopFieldsetElements()


Class: HTML_QuickForm_Renderer_Tableless  - X-Ref

A renderer for HTML_QuickForm that only uses XHTML and CSS but no
table tags

You need to specify a stylesheet like the one that you find in
data/stylesheet.css to make this work.

__construct()   X-Ref
Constructor


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


Class: name  - X-Ref

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

param: object     An HTML_QuickForm_header element being visited
return: void

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

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
return: void

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

param: object      An HTML_QuickForm object being visited
return: void

finishForm(&$form)   X-Ref
Called when visiting a form, after processing all form elements
Adds required note, form attributes, validation javascript and form content.

param: object      An HTML_QuickForm object being visited
return: void

setOpenFieldsetTemplate($html)   X-Ref
Sets the template used when opening a fieldset

param: string      The HTML used when opening a fieldset
return: void

setOpenHiddenFieldsetTemplate($html)   X-Ref
Sets the template used when opening a hidden fieldset
(i.e. a fieldset that is opened when there is no header element)

param: string      The HTML used when opening a hidden fieldset
return: void

setCloseFieldsetTemplate($html)   X-Ref
Sets the template used when closing a fieldset

param: string      The HTML used when closing a fieldset
return: void

addStopFieldsetElements($element)   X-Ref
Adds one or more element names that indicate the end of a fieldset
(a new one will be opened when a the next header element occurs)

param: mixed      Element name(s) (as array or string)
return: void