Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

(no description)

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

Defines 2 classes

HTML_QuickForm_hiddenselect:: (2 methods):
  __construct()
  HTML_QuickForm_hiddenselect()

name:: (2 methods):
  toHtml()
  accept()


Class: HTML_QuickForm_hiddenselect  - X-Ref

This class takes the same arguments as a select element, but instead
of creating a select ring it creates hidden elements for all values
already selected with setDefault or setConstant.  This is useful if
you have a select ring that you don't want visible, but you need all
selected values to be passed.

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

param: string    Select name attribute
param: mixed     Label(s) for the select (not used)
param: mixed     Data to be used to populate options
param: mixed     Either a typical HTML attribute string or an associative array (not used)
return: void

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


Class: name  - X-Ref

toHtml()   X-Ref
Returns the SELECT in HTML

return: string

accept(&$renderer, $required=false, $error=null)   X-Ref
This is essentially a hidden element and should be rendered as one