Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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