Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Public Attributes | List of all members
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. More...
 
 export_for_template (renderer_base $output)
 Export for template. More...
 

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: