ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Abstracts a folder containing a set of icons. More...
Public Member Functions | |
__construct (string $path) | |
ilSystemStyleIconFolder constructor. More... | |
read () | |
Reads the folder recursively and sorts the icons by name and type. More... | |
sortIconsByPath () | |
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 (string $name) | |
getIconByPath (string $path) | |
getIconsSortedByFolder () | |
Sorts all icons by their occurrence in folders. More... | |
setIcons (array $icons) | |
getPath () | |
setPath (string $path) | |
getColorSet () | |
getUsagesOfColor (string $color_id) | |
Gets the usages of a certain color. More... | |
getUsagesOfColorAsString (string $color_id) | |
Gets the usages of a color as string. More... | |
setColorSet (ilSystemStyleIconColorSet $color_set) | |
Protected Member Functions | |
sortIcons () | |
Sorts the Icons by name and type. More... | |
compareIconsByName (ilSystemStyleIcon $a, ilSystemStyleIcon $b) | |
readIconsFromFolder (string $src='') | |
extractColorSet () | |
Gets the color sets of all icons an merges them into one. More... | |
Protected Attributes | |
array | $icons = [] |
string | $path = '' |
Path to the root of the folder. More... | |
ilSystemStyleIconColorSet | $color_set |
Complete color set of all icons contained in this folder. More... | |
Abstracts a folder containing a set of icons.
Definition at line 24 of file class.ilSystemStyleIconFolder.php.
ilSystemStyleIconFolder::__construct | ( | string | $path | ) |
ilSystemStyleIconFolder constructor.
Definition at line 45 of file class.ilSystemStyleIconFolder.php.
References read(), and setPath().
ilSystemStyleIconFolder::addIcon | ( | ilSystemStyleIcon | $icon | ) |
Adds an icon to the folders abstraction.
Definition at line 129 of file class.ilSystemStyleIconFolder.php.
Referenced by readIconsFromFolder().
ilSystemStyleIconFolder::changeIconColors | ( | array | $color_changes | ) |
Changes a set of colors in all icons contained in the folder.
Definition at line 119 of file class.ilSystemStyleIconFolder.php.
References getIcons().
|
protected |
Definition at line 69 of file class.ilSystemStyleIconFolder.php.
References ilSystemStyleIcon\getName(), and ilSystemStyleIcon\getType().
|
protected |
Gets the color sets of all icons an merges them into one.
Definition at line 219 of file class.ilSystemStyleIconFolder.php.
References getIcons().
Referenced by getColorSet().
ilSystemStyleIconFolder::getColorSet | ( | ) |
Definition at line 208 of file class.ilSystemStyleIconFolder.php.
References $color_set, and extractColorSet().
ilSystemStyleIconFolder::getIconByName | ( | string | $name | ) |
ilSystemStyleIconException |
Definition at line 146 of file class.ilSystemStyleIconFolder.php.
References $name, and ilSystemStyleIconException\ICON_DOES_NOT_EXIST.
ilSystemStyleIconFolder::getIconByPath | ( | string | $path | ) |
ilSystemStyleIconException |
Definition at line 159 of file class.ilSystemStyleIconFolder.php.
References $path, and ilSystemStyleIconException\ICON_DOES_NOT_EXIST.
ilSystemStyleIconFolder::getIcons | ( | ) |
Gets an Icon from the folders abstraction.
Definition at line 138 of file class.ilSystemStyleIconFolder.php.
References $icons.
Referenced by changeIconColors(), extractColorSet(), getIconsSortedByFolder(), and getUsagesOfColor().
ilSystemStyleIconFolder::getIconsSortedByFolder | ( | ) |
Sorts all icons by their occurrence in folders.
Definition at line 173 of file class.ilSystemStyleIconFolder.php.
References $id, and getIcons().
ilSystemStyleIconFolder::getPath | ( | ) |
Definition at line 198 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by read().
ilSystemStyleIconFolder::getUsagesOfColor | ( | string | $color_id | ) |
Gets the usages of a certain color.
Definition at line 231 of file class.ilSystemStyleIconFolder.php.
References $icons, and getIcons().
Referenced by getUsagesOfColorAsString().
ilSystemStyleIconFolder::getUsagesOfColorAsString | ( | string | $color_id | ) |
Gets the usages of a color as string.
Definition at line 245 of file class.ilSystemStyleIconFolder.php.
References getUsagesOfColor().
ilSystemStyleIconFolder::read | ( | ) |
Reads the folder recursively and sorts the icons by name and type.
ilSystemStyleException |
Definition at line 55 of file class.ilSystemStyleIconFolder.php.
References getPath(), readIconsFromFolder(), and sortIcons().
Referenced by __construct().
|
protected |
ilSystemStyleException | |
ilSystemStyleIconException |
Definition at line 93 of file class.ilSystemStyleIconFolder.php.
References Vendor\Package\$e, addIcon(), ilSystemStyleException\FILE_OPENING_FAILED, and ilSystemStyleIconException\IMAGES_FOLDER_DOES_NOT_EXIST.
Referenced by read().
ilSystemStyleIconFolder::setColorSet | ( | ilSystemStyleIconColorSet | $color_set | ) |
Definition at line 254 of file class.ilSystemStyleIconFolder.php.
References $color_set.
ilSystemStyleIconFolder::setIcons | ( | array | $icons | ) |
ilSystemStyleIcon[] | $icons |
Definition at line 193 of file class.ilSystemStyleIconFolder.php.
References $icons.
ilSystemStyleIconFolder::setPath | ( | string | $path | ) |
Definition at line 203 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by __construct().
|
protected |
Sorts the Icons by name and type.
Definition at line 64 of file class.ilSystemStyleIconFolder.php.
Referenced by read().
ilSystemStyleIconFolder::sortIconsByPath | ( | ) |
Definition at line 82 of file class.ilSystemStyleIconFolder.php.
References Vendor\Package\$a, Vendor\Package\$b, and ilSystemStyleIcon\getPath().
|
protected |
Complete color set of all icons contained in this folder.
Definition at line 40 of file class.ilSystemStyleIconFolder.php.
Referenced by getColorSet(), and setColorSet().
|
protected |
Definition at line 30 of file class.ilSystemStyleIconFolder.php.
Referenced by getIcons(), getUsagesOfColor(), and setIcons().
|
protected |
Path to the root of the folder.
Definition at line 35 of file class.ilSystemStyleIconFolder.php.
Referenced by getIconByPath(), getPath(), and setPath().