Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
pix_icon_font Class Reference

Data structure representing an icon font. More...

Inheritance diagram for pix_icon_font:
templatable pix_icon_fontawesome

Public Member Functions

 __construct (pix_icon $pixicon)
 Constructor.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 
 is_mapped ()
 Return true if this pix_icon was successfully mapped to an icon font.
 

Detailed Description

Data structure representing an icon font.

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

Constructor & Destructor Documentation

◆ __construct()

pix_icon_font::__construct ( pix_icon $pixicon)

Constructor.

Parameters
pix_icon$pixiconThe original icon

Member Function Documentation

◆ export_for_template()

pix_icon_font::export_for_template ( renderer_base $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
array

Implements templatable.

◆ is_mapped()

pix_icon_font::is_mapped ( )

Return true if this pix_icon was successfully mapped to an icon font.

Return values
bool

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