ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. More...
Public Member Functions | |
__construct ($name, $path, $type) | |
ilSystemStyleIcon constructor. More... | |
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 ($type) | |
getName () | |
setName ($name) | |
__toString () | |
getPath () | |
setPath ($path) | |
getDirRelToCustomizing () | |
Only get dir rel to the Customizing dir without name and extension from. More... | |
getColorSet () | |
setColorSet ($color_set) | |
usesColor ($color_id) | |
Protected Member Functions | |
extractColorSet () | |
Extracts all colors from the icon by parsing the svg file for a regular expresion. More... | |
Protected Attributes | |
$path = "" | |
$name = "" | |
$type = "" | |
$color_set = null | |
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon.
Definition at line 11 of file class.ilSystemStyleIcon.php.
ilSystemStyleIcon::__construct | ( | $name, | |
$path, | |||
$type | |||
) |
ilSystemStyleIcon constructor.
$name | |
$path | |
$type |
Definition at line 45 of file class.ilSystemStyleIcon.php.
References $name, $path, $type, setName(), setPath(), and setType().
ilSystemStyleIcon::__toString | ( | ) |
Definition at line 105 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.
array | $color_changes |
Definition at line 57 of file class.ilSystemStyleIcon.php.
References extractColorSet(), getPath(), and getType().
Referenced by ilSystemStyleIconsGUI\getByIconValues().
|
protected |
Extracts all colors from the icon by parsing the svg file for a regular expresion.
Definition at line 150 of file class.ilSystemStyleIcon.php.
References getColorSet(), getPath(), and getType().
Referenced by changeColors(), and getColorSet().
ilSystemStyleIcon::getColorSet | ( | ) |
Definition at line 139 of file class.ilSystemStyleIcon.php.
References $color_set, and extractColorSet().
Referenced by ilSystemStyleIconsGUI\addSelectIconToolbar(), extractColorSet(), ilSystemStyleIconsGUI\getByIconValues(), and usesColor().
ilSystemStyleIcon::getDirRelToCustomizing | ( | ) |
Only get dir rel to the Customizing dir without name and extension from.
Definition at line 131 of file class.ilSystemStyleIcon.php.
References getPath().
ilSystemStyleIcon::getName | ( | ) |
Definition at line 88 of file class.ilSystemStyleIcon.php.
References $name.
Referenced by __toString(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilSystemStyleIconsGUI\getByIconValues(), ilSystemStyleIconsGUI\renderIconPreview(), and ilSystemStyleIconFolder\sortIcons().
ilSystemStyleIcon::getPath | ( | ) |
Definition at line 113 of file class.ilSystemStyleIcon.php.
References $path.
Referenced by changeColors(), extractColorSet(), getDirRelToCustomizing(), and ilSystemStyleIconsGUI\renderIconPreview().
ilSystemStyleIcon::getType | ( | ) |
Definition at line 72 of file class.ilSystemStyleIcon.php.
References $type.
Referenced by changeColors(), extractColorSet(), and ilSystemStyleIconFolder\sortIcons().
ilSystemStyleIcon::setColorSet | ( | $color_set | ) |
ilSystemStyleIconColorSet | $color_set |
Definition at line 172 of file class.ilSystemStyleIcon.php.
References $color_set.
ilSystemStyleIcon::setName | ( | $name | ) |
string | $name |
Definition at line 96 of file class.ilSystemStyleIcon.php.
References $name.
Referenced by __construct().
ilSystemStyleIcon::setPath | ( | $path | ) |
string | $path |
Definition at line 121 of file class.ilSystemStyleIcon.php.
References $path.
Referenced by __construct().
ilSystemStyleIcon::setType | ( | $type | ) |
string | $type |
Definition at line 80 of file class.ilSystemStyleIcon.php.
References $type.
Referenced by __construct().
ilSystemStyleIcon::usesColor | ( | $color_id | ) |
$color_id |
Definition at line 181 of file class.ilSystemStyleIcon.php.
References getColorSet().
|
protected |
Definition at line 37 of file class.ilSystemStyleIcon.php.
Referenced by getColorSet(), and setColorSet().
|
protected |
Definition at line 24 of file class.ilSystemStyleIcon.php.
Referenced by __construct(), getName(), and setName().
|
protected |
Definition at line 18 of file class.ilSystemStyleIcon.php.
Referenced by __construct(), getPath(), and setPath().
|
protected |
Definition at line 30 of file class.ilSystemStyleIcon.php.
Referenced by __construct(), getType(), and setType().