Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
Contains class \core\output\icon_system
Copyright: | 2016 Damyon Wiese |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 164 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
icon_system:: (6 methods):
__construct()
instance()
is_valid_system()
get_icon_name_map()
remap_icon_name()
reset_caches()
Class: icon_system - X-Ref
Class allowing different systems for mapping and rendering icons.__construct() X-Ref |
Constructor |
instance($type = null) X-Ref |
Factory method param: string $type Either a specific type, or null to get the default type. return: \core\output\icon_system |
is_valid_system($system) X-Ref |
Validate the theme config setting. param: string $system return: boolean |
get_icon_name_map() X-Ref |
Overridable function to get a mapping of all icons. Default is to do no mapping. |
remap_icon_name($iconname, $component) X-Ref |
Overridable function to map the icon name to something else. Default is to do no mapping. Map is cached in the singleton. |
reset_caches() X-Ref |
Clears the instance cache, for use in unit tests |