|
ILIAS
release_8 Revision v8.24
|
Abstracts an Icon and the necessary actions to get all colors out of an svg Icon. More...
Collaboration diagram for ilSystemStyleIcon: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().
Here is the call graph for this function:| ilSystemStyleIcon::__toString | ( | ) |
Definition at line 88 of file class.ilSystemStyleIcon.php.
References getName().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSystemStyleIcon::getColorSet | ( | ) |
Definition at line 116 of file class.ilSystemStyleIcon.php.
References $color_set, and extractColorSet().
Referenced by extractColorSet(), and usesColor().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 $path, and getPath().
Here is the call graph for this function:| ilSystemStyleIcon::getName | ( | ) |
Definition at line 78 of file class.ilSystemStyleIcon.php.
References $name.
Referenced by __toString(), and ilSystemStyleIconsGUI\renderIconPreview().
Here is the caller graph for this function:| ilSystemStyleIcon::getPath | ( | ) |
Definition at line 93 of file class.ilSystemStyleIcon.php.
References $path.
Referenced by changeColors(), extractColorSet(), getDirRelToCustomizing(), and ilSystemStyleIconsGUI\renderIconPreview().
Here is the caller graph for this function:| ilSystemStyleIcon::getType | ( | ) |
Definition at line 68 of file class.ilSystemStyleIcon.php.
References $type.
Referenced by changeColors(), and extractColorSet().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilSystemStyleIcon::setPath | ( | string | $path | ) |
Definition at line 98 of file class.ilSystemStyleIcon.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:| ilSystemStyleIcon::setType | ( | string | $type | ) |
Definition at line 73 of file class.ilSystemStyleIcon.php.
References $type.
Referenced by __construct().
Here is the caller graph for this function:| ilSystemStyleIcon::usesColor | ( | string | $color_id | ) |
Definition at line 151 of file class.ilSystemStyleIcon.php.
References getColorSet().
Here is the call graph for this function:
|
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.
Referenced by getDirRelToCustomizing(), getPath(), and setPath().
|
protected |
Extension of the icon.
Definition at line 39 of file class.ilSystemStyleIcon.php.