Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
core\output\icon_system_fontawesome Class Reference
Inheritance diagram for core\output\icon_system_fontawesome:
core\output\icon_system_font core\output\icon_system theme_classic\output\icon_system_fontawesome

Public Member Functions

 get_amd_name ()
 The name of an AMD module extending core/icon_system.
 
 get_core_icon_map ()
 
 get_deprecated_icons ()
 Overridable function to get the list of deprecated icons.
 
 get_icon_name_map ()
 Overridable function to get a mapping of all icons.
 
 remap_icon_name ($iconname, $component)
 Overridable function to map the icon name to something else.
 
 render_pix_icon (renderer_base $output, pix_icon $icon)
 Render the pix icon according to the icon system.
 

Static Public Member Functions

static instance ($type=null)
 Factory method.
 
static is_valid_system ($system)
 Validate the theme config setting.
 
static reset_caches ()
 Clears the instance cache, for use in unit tests.
 

Public Attributes

string const FONTAWESOME = '\\core\\output\\icon_system_fontawesome'
 Default icon system.
 
string const STANDARD = '\\core\\output\\icon_system_standard'
 Default icon system.
 

Protected Member Functions

 add_family (string $cssclasses)
 Add the family to the icon if not present.
 

Detailed Description

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

Member Function Documentation

◆ add_family()

core\output\icon_system_fontawesome::add_family ( string $cssclasses)
protected

Add the family to the icon if not present.

Parameters
string$cssclassesThe icon classes.
Return values
stringThe icon classes with the family.

◆ get_amd_name()

core\output\icon_system_fontawesome::get_amd_name ( )

The name of an AMD module extending core/icon_system.

Return values
string

Reimplemented from core\output\icon_system.

◆ get_core_icon_map()

core\output\icon_system_fontawesome::get_core_icon_map ( )

◆ get_deprecated_icons()

core\output\icon_system_fontawesome::get_deprecated_icons ( )

Overridable function to get the list of deprecated icons.

Return values
arraywith the deprecated key icons (for instance, core:a/download_all).

Reimplemented from core\output\icon_system.

◆ get_icon_name_map()

core\output\icon_system_fontawesome::get_icon_name_map ( )

Overridable function to get a mapping of all icons.

Default is to do no mapping.

Reimplemented from core\output\icon_system.

◆ instance()

static core\output\icon_system::instance ( $type = null)
staticfinalinherited

Factory method.

Parameters
string$typeEither a specific type, or null to get the default type.
Return values
core\output\icon_system

◆ is_valid_system()

static core\output\icon_system::is_valid_system ( $system)
staticfinalinherited

Validate the theme config setting.

Parameters
string$system
Return values
boolean

◆ remap_icon_name()

core\output\icon_system::remap_icon_name ( $iconname,
$component )
finalinherited

Overridable function to map the icon name to something else.

Default is to do no mapping. Map is cached in the singleton.

◆ render_pix_icon()

core\output\icon_system_fontawesome::render_pix_icon ( renderer_base $output,
pix_icon $icon )

Render the pix icon according to the icon system.

Parameters
renderer_base$output
pix_icon$icon
Return values
string

Reimplemented from core\output\icon_system.


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