Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | Protected Attributes | List of all members
core_course\output\modchooser_item Class Reference

The modchooser_item renderable class. More...

Inheritance diagram for core_course\output\modchooser_item:
core\output\chooser_item renderable templatable

Public Member Functions

 __construct ($module, context $context)
 Constructor. More...
 
 export_for_template (\renderer_base $output)
 Export for template. More...
 
 export_for_template (renderer_base $output)
 Export for template. More...
 

Public Attributes

context $context
 The relevant context.
 
string $description
 The item description.
 
pix_icon $icon
 The icon for this item.
 
string $id
 An identifier for the item.
 
string $label
 The label of this item.
 
string $value
 The value this item represents.
 

Protected Attributes

string $customiconurl
 

Detailed Description

The modchooser_item renderable class.

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

Constructor & Destructor Documentation

◆ __construct()

core_course\output\modchooser_item::__construct (   $module,
context  $context 
)

Constructor.

Parameters
stdClass$moduleThe module.
context$contextThe relevant context.

Member Function Documentation

◆ export_for_template() [1/2]

core_course\output\modchooser_item::export_for_template ( \renderer_base  $output)

Export for template.

Parameters
renderer_base$outputThe renderer
Return values
stdClass::$data

◆ export_for_template() [2/2]

core\output\chooser_item::export_for_template ( renderer_base  $output)
inherited

Export for template.

Parameters
renderer_baseThe renderer.
Return values
stdClass

Implements templatable.


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