Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core\output\chooser_section Class Reference

The chooser_section renderable class. More...

Inheritance diagram for core\output\chooser_section:
renderable templatable

Public Member Functions

 __construct ($id, lang_string $label, array $items)
 Constructor.
 
 export_for_template (renderer_base $output)
 Export for template.
 

Public Attributes

string $id
 $id An identifier for the section.
 
chooser_item[] $items
 $items The items in this section.
 
lang_string $label
 $label The label of the section.
 

Detailed Description

The chooser_section renderable class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core\output\chooser_section::__construct ( $id,
lang_string $label,
array $items )

Constructor.

Parameters
string$idAn identifier for the section.
lang_string$labelThe label of the section.
chooser_item[]$itemsThe items in this section.

Member Function Documentation

◆ export_for_template()

core\output\chooser_section::export_for_template ( renderer_base $output)

Export for template.

Parameters
renderer_baseThe renderer.
Return values
stdClass

Implements templatable.


The documentation for this class was generated from the following file: