Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is 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