Class allowing different systems for mapping and rendering icons.  
 More...
|  | 
| 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. 
 | 
|  | 
|  | 
| string const | FONTAWESOME = '\\core\\output\\icon_system_fontawesome' | 
|  | Default icon system. 
 | 
|  | 
| string const | STANDARD = '\\core\\output\\icon_system_standard' | 
|  | Default icon system. 
 | 
|  | 
Class allowing different systems for mapping and rendering icons. 
Possible icon styles are:
- standard - image tags are generated which point to pix icons stored in a plugin pix folder.
- fontawesome - font awesome markup is generated with the name of the icon mapped from the moodle icon name.
- inline - inline tags are used for svg and png so no separate page requests are made (at the expense of page size).
- Copyright
- 2016 Damyon Wiese 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ get_amd_name()
  
  | 
        
          | core\output\icon_system::get_amd_name | ( |  | ) |  |  | abstract | 
 
 
◆ get_icon_name_map()
      
        
          | core\output\icon_system::get_icon_name_map | ( |  | ) |  | 
      
 
 
◆ instance()
  
  | 
        
          | static core\output\icon_system::instance | ( |  | $type = null | ) |  |  | staticfinal | 
 
Factory method. 
- Parameters
- 
  
    | string | $type | Either a specific type, or null to get the default type. |  
 
- Return values
- 
  
  
 
 
◆ is_valid_system()
  
  | 
        
          | static core\output\icon_system::is_valid_system | ( |  | $system | ) |  |  | staticfinal | 
 
Validate the theme config setting. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ remap_icon_name()
  
  | 
        
          | core\output\icon_system::remap_icon_name | ( |  | $iconname, |  
          |  |  |  | $component ) |  | final | 
 
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()
The documentation for this class was generated from the following file: