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: 510 lines (33 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

HTML_QuickForm_date:: (2 methods):
  __construct()
  HTML_QuickForm_date()

name:: (6 methods):
  _createElements()
  _createOptionList()
  setValue()
  toHtml()
  accept()
  onQuickFormEvent()


Class: HTML_QuickForm_date  - X-Ref

Class for a group of elements used to input dates (and times).

Inspired by original 'date' element but reimplemented as a subclass
of HTML_QuickForm_group

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

param: string  Element's name
param: mixed   Label(s) for an element
param: array   Options to control the element's display
param: mixed   Either a typical HTML attribute string or an associative array

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


Class: name  - X-Ref

_createElements()   X-Ref
No description

_createOptionList($start, $end, $step = 1)   X-Ref
Creates an option list containing the numbers from the start number to the end, inclusive

param: int     The start number
param: int     The end number
param: int     Increment by this value
return: array   An array of numeric options.

setValue($value)   X-Ref
No description

toHtml()   X-Ref
No description

accept(&$renderer, $required = false, $error = null)   X-Ref
No description

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