ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Abstracts a folder containing a set of icons. More...
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().
ilSystemStyleIconFolder::addIcon | ( | ilSystemStyleIcon | $icon | ) |
Adds an icon to the folders abstraction.
ilSystemStyleIcon | $icon |
Definition at line 127 of file class.ilSystemStyleIconFolder.php.
Referenced by xRead().
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.
References getIcons().
|
protected |
Gets the color sets of all icons an merges them into one.
Definition at line 216 of file class.ilSystemStyleIconFolder.php.
References getIcons().
Referenced by getColorSet().
ilSystemStyleIconFolder::getColorSet | ( | ) |
Definition at line 205 of file class.ilSystemStyleIconFolder.php.
References $color_set, and extractColorSet().
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.
References $icons.
Referenced by changeIconColors(), extractColorSet(), getIconsSortedByFolder(), and getUsagesOfColor().
ilSystemStyleIconFolder::getIconsSortedByFolder | ( | ) |
Sorts all icons by their occurrence in folders.
Definition at line 162 of file class.ilSystemStyleIconFolder.php.
References $id, and getIcons().
ilSystemStyleIconFolder::getPath | ( | ) |
Definition at line 189 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by read(), and xRead().
ilSystemStyleIconFolder::getUsagesOfColor | ( | $color_id | ) |
Gets the usages of a certain color.
$color_id |
Definition at line 230 of file class.ilSystemStyleIconFolder.php.
References $icons, and getIcons().
Referenced by getUsagesOfColorAsString().
ilSystemStyleIconFolder::getUsagesOfColorAsString | ( | $color_id | ) |
Gets the usages of a color as string.
$color_id |
Definition at line 247 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 53 of file class.ilSystemStyleIconFolder.php.
References getPath(), sortIcons(), and xRead().
Referenced by __construct().
ilSystemStyleIconFolder::setColorSet | ( | $color_set | ) |
$color_set |
Definition at line 259 of file class.ilSystemStyleIconFolder.php.
References $color_set.
ilSystemStyleIconFolder::setIcons | ( | $icons | ) |
ilSystemStyleIcon[] | $icons |
Definition at line 181 of file class.ilSystemStyleIconFolder.php.
References $icons.
ilSystemStyleIconFolder::setPath | ( | $path | ) |
string | $path |
Definition at line 197 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by __construct().
|
protected |
Sorts the Icons by name and type.
Definition at line 62 of file class.ilSystemStyleIconFolder.php.
References ilSystemStyleIcon\getName(), and ilSystemStyleIcon\getType().
Referenced by read().
|
protected |
string | $src | |
string | $rel_path |
ilSystemStyleException | |
ilSystemStyleIconException |
Definition at line 85 of file class.ilSystemStyleIconFolder.php.
References $file, $info, addIcon(), ilSystemStyleException\FILE_OPENING_FAILED, getPath(), and ilSystemStyleIconException\IMAGES_FOLDER_DOES_NOT_EXIST.
Referenced by read().
|
protected |
Definition at line 36 of file class.ilSystemStyleIconFolder.php.
Referenced by getColorSet(), and setColorSet().
|
protected |
Definition at line 22 of file class.ilSystemStyleIconFolder.php.
Referenced by getIcons(), getUsagesOfColor(), and setIcons().
|
protected |
Definition at line 29 of file class.ilSystemStyleIconFolder.php.
Referenced by __construct(), getPath(), and setPath().