|
ILIAS
release_8 Revision v8.25-1-g13de6a5eca6
|
Abstracts a folder containing a set of icons. More...
Collaboration diagram for ilSystemStyleIconFolder: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().
Here is the call graph for this function:| ilSystemStyleIconFolder::addIcon | ( | ilSystemStyleIcon | $icon | ) |
Adds an icon to the folders abstraction.
Definition at line 129 of file class.ilSystemStyleIconFolder.php.
Referenced by readIconsFromFolder().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Definition at line 69 of file class.ilSystemStyleIconFolder.php.
References Vendor\Package\$a, and Vendor\Package\$b.
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSystemStyleIconFolder::getColorSet | ( | ) |
Definition at line 208 of file class.ilSystemStyleIconFolder.php.
References $color_set, and extractColorSet().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilSystemStyleIconFolder::getIconsSortedByFolder | ( | ) |
Sorts all icons by their occurrence in folders.
Definition at line 173 of file class.ilSystemStyleIconFolder.php.
References $id, and getIcons().
Here is the call graph for this function:| ilSystemStyleIconFolder::getPath | ( | ) |
Definition at line 198 of file class.ilSystemStyleIconFolder.php.
References $path.
Referenced by read().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSystemStyleIconFolder::getUsagesOfColorAsString | ( | string | $color_id | ) |
Gets the usages of a color as string.
Definition at line 245 of file class.ilSystemStyleIconFolder.php.
References getUsagesOfColor().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
protected |
Sorts the Icons by name and type.
Definition at line 64 of file class.ilSystemStyleIconFolder.php.
Referenced by read().
Here is the caller graph for this function:| ilSystemStyleIconFolder::sortIconsByPath | ( | ) |
Definition at line 82 of file class.ilSystemStyleIconFolder.php.
References Vendor\Package\$a, and Vendor\Package\$b.
|
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().