Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: