|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Abstracts a folder containing a set of icons. More...
Collaboration diagram for ilSystemStyleIconFolder:Public Member Functions | |
| __construct ($path) | |
| ilSystemStyleIconFolder constructor. More... | |
| read () | |
| Reads the folder recursively and sorts the icons by name and type. More... | |
| changeIconColors (array $color_changes) | |
| Changes a set of colors in all icons contained in the folder. More... | |
| addIcon (ilSystemStyleIcon $icon) | |
| Adds an icon to the folders abstraction. More... | |
| getIcons () | |
| Gets an Icon from the folders abstraction. More... | |
| getIconByName ($name) | |
| getIconsSortedByFolder () | |
| Sorts all icons by their occurrence in folders. More... | |
| setIcons ($icons) | |
| getPath () | |
| setPath ($path) | |
| getColorSet () | |
| getUsagesOfColor ($color_id) | |
| Gets the usages of a certain color. More... | |
| getUsagesOfColorAsString ($color_id) | |
| Gets the usages of a color as string. More... | |
| setColorSet ($color_set) | |
Protected Member Functions | |
| sortIcons () | |
| Sorts the Icons by name and type. More... | |
| xRead ($src="", $rel_path="") | |
| extractColorSet () | |
| Gets the color sets of all icons an merges them into one. More... | |
Protected Attributes | |
| $icons = [] | |
| $path = "" | |
| $color_set = null | |
Abstracts a folder containing a set of icons.
Class ilSystemStyleIconFolder
Definition at line 15 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::__construct | ( | $path | ) |
ilSystemStyleIconFolder constructor.
| string | $path |
Definition at line 42 of file class.ilSystemStyleIconFolder.php.
References $path, read(), and setPath().
Here is the call graph for this function:| ilSystemStyleIconFolder::addIcon | ( | ilSystemStyleIcon | $icon | ) |
Adds an icon to the folders abstraction.
| ilSystemStyleIcon | $icon |
Definition at line 127 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::changeIconColors | ( | array | $color_changes | ) |
Changes a set of colors in all icons contained in the folder.
| array | $color_changes |
Definition at line 115 of file class.ilSystemStyleIconFolder.php.
|
protected |
Gets the color sets of all icons an merges them into one.
Definition at line 216 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::getColorSet | ( | ) |
Definition at line 205 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::getIconByName | ( | $name | ) |
| $name |
| ilSystemStyleIconException |
Definition at line 147 of file class.ilSystemStyleIconFolder.php.
References $name, and ilSystemStyleIconException\ICON_DOES_NOT_EXIST.
| ilSystemStyleIconFolder::getIcons | ( | ) |
Gets an Icon from the folders abstraction.
Definition at line 137 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::getIconsSortedByFolder | ( | ) |
Sorts all icons by their occurrence in folders.
Definition at line 162 of file class.ilSystemStyleIconFolder.php.
References $id.
| ilSystemStyleIconFolder::getPath | ( | ) |
Definition at line 189 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by read().
Here is the caller graph for this function:| ilSystemStyleIconFolder::getUsagesOfColor | ( | $color_id | ) |
Gets the usages of a certain color.
| $color_id |
Definition at line 230 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::getUsagesOfColorAsString | ( | $color_id | ) |
Gets the usages of a color as string.
| $color_id |
Definition at line 247 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::read | ( | ) |
Reads the folder recursively and sorts the icons by name and type.
| ilSystemStyleException |
Definition at line 53 of file class.ilSystemStyleIconFolder.php.
References getPath(), sortIcons(), and xRead().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSystemStyleIconFolder::setColorSet | ( | $color_set | ) |
| $color_set |
Definition at line 259 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::setIcons | ( | $icons | ) |
| ilSystemStyleIcon[] | $icons |
Definition at line 181 of file class.ilSystemStyleIconFolder.php.
| ilSystemStyleIconFolder::setPath | ( | $path | ) |
| string | $path |
Definition at line 197 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Sorts the Icons by name and type.
Definition at line 62 of file class.ilSystemStyleIconFolder.php.
References ilSystemStyleIcon\getType().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $src | |
| string | $rel_path |
| ilSystemStyleException | |
| ilSystemStyleIconException |
Definition at line 85 of file class.ilSystemStyleIconFolder.php.
References $info, ilSystemStyleException\FILE_OPENING_FAILED, and ilSystemStyleIconException\IMAGES_FOLDER_DOES_NOT_EXIST.
Referenced by read().
Here is the caller graph for this function:
|
protected |
Definition at line 36 of file class.ilSystemStyleIconFolder.php.
|
protected |
Definition at line 22 of file class.ilSystemStyleIconFolder.php.
|
protected |
Definition at line 29 of file class.ilSystemStyleIconFolder.php.
Referenced by __construct().