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