ILIAS
release_8 Revision v8.19
|
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. More...
Public Member Functions | |
__construct (string $name, string $path, string $type) | |
changeColors (array $color_changes) | |
Changes colors in the svg file of the icon and updates the icon abstraction by extracting the colors again. More... | |
getType () | |
setType (string $type) | |
getName () | |
setName (string $name) | |
__toString () | |
getPath () | |
setPath (string $path) | |
getDirRelToCustomizing () | |
Only get dir rel to the Customizing dir without name and extension from. More... | |
getColorSet () | |
setColorSet (ilSystemStyleIconColorSet $color_set) | |
usesColor (string $color_id) | |
Protected Member Functions | |
extractColorSet () | |
Extracts all colors from the icon by parsing the svg file for a regular expresion. More... | |
Protected Attributes | |
string | $path = '' |
Path to the icon including name and extension. More... | |
string | $name = '' |
Name of the Icon. More... | |
string | $type = '' |
Extension of the icon. More... | |
ilSystemStyleIconColorSet | $color_set |
Color set extracted from the icon. More... | |
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon.
Definition at line 24 of file class.ilSystemStyleIcon.php.
ilSystemStyleIcon::__construct | ( | string | $name, |
string | $path, | ||
string | $type | ||
) |
Definition at line 46 of file class.ilSystemStyleIcon.php.
References setName(), setPath(), and setType().
ilSystemStyleIcon::__toString | ( | ) |
Definition at line 88 of file class.ilSystemStyleIcon.php.
References getName().
ilSystemStyleIcon::changeColors | ( | array | $color_changes | ) |
Changes colors in the svg file of the icon and updates the icon abstraction by extracting the colors again.
Definition at line 56 of file class.ilSystemStyleIcon.php.
References extractColorSet(), getPath(), and getType().
Referenced by ilSystemStyleIconsGUI\addSelectIconToolbar().
|
protected |
Extracts all colors from the icon by parsing the svg file for a regular expresion.
Definition at line 127 of file class.ilSystemStyleIcon.php.
References getColorSet(), getPath(), and getType().
Referenced by changeColors(), and getColorSet().
ilSystemStyleIcon::getColorSet | ( | ) |
Definition at line 116 of file class.ilSystemStyleIcon.php.
References $color_set, and extractColorSet().
Referenced by ilSystemStyleIconsGUI\addSelectIconToolbar(), extractColorSet(), and usesColor().
ilSystemStyleIcon::getDirRelToCustomizing | ( | ) |
Only get dir rel to the Customizing dir without name and extension from.
Definition at line 107 of file class.ilSystemStyleIcon.php.
References getPath().
ilSystemStyleIcon::getName | ( | ) |
Definition at line 78 of file class.ilSystemStyleIcon.php.
References $name.
Referenced by __toString(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilSystemStyleIconFolder\compareIconsByName(), and ilSystemStyleIconsGUI\renderIconPreview().
ilSystemStyleIcon::getPath | ( | ) |
Definition at line 93 of file class.ilSystemStyleIcon.php.
References $path.
Referenced by ilSystemStyleIconsGUI\addSelectIconToolbar(), changeColors(), extractColorSet(), getDirRelToCustomizing(), ilSystemStyleIconsGUI\renderIconPreview(), and ilSystemStyleIconFolder\sortIconsByPath().
ilSystemStyleIcon::getType | ( | ) |
Definition at line 68 of file class.ilSystemStyleIcon.php.
References $type.
Referenced by changeColors(), ilSystemStyleIconFolder\compareIconsByName(), and extractColorSet().
ilSystemStyleIcon::setColorSet | ( | ilSystemStyleIconColorSet | $color_set | ) |
Definition at line 146 of file class.ilSystemStyleIcon.php.
References $color_set.
ilSystemStyleIcon::setName | ( | string | $name | ) |
Definition at line 83 of file class.ilSystemStyleIcon.php.
References $name.
Referenced by __construct().
ilSystemStyleIcon::setPath | ( | string | $path | ) |
Definition at line 98 of file class.ilSystemStyleIcon.php.
References $path.
Referenced by __construct().
ilSystemStyleIcon::setType | ( | string | $type | ) |
Definition at line 73 of file class.ilSystemStyleIcon.php.
References $type.
Referenced by __construct().
ilSystemStyleIcon::usesColor | ( | string | $color_id | ) |
Definition at line 151 of file class.ilSystemStyleIcon.php.
References getColorSet().
|
protected |
Color set extracted from the icon.
Definition at line 44 of file class.ilSystemStyleIcon.php.
Referenced by getColorSet(), and setColorSet().
|
protected |
Name of the Icon.
Definition at line 34 of file class.ilSystemStyleIcon.php.
|
protected |
Path to the icon including name and extension.
Definition at line 29 of file class.ilSystemStyleIcon.php.
|
protected |
Extension of the icon.
Definition at line 39 of file class.ilSystemStyleIcon.php.