LOADICONS
in package
Load image icons used throughout WIKINDX
Table of Contents
Properties
- $icons : mixed
- array
- $setupDone : mixed
- boolean
- $templateDir : mixed
- string
Methods
- getIconRealFileName() : array<string|int, mixed>
- Return the real path of an icon from its basename
- storeIconInfo() : mixed
- Store in the class members a link for each standard icon
Properties
$icons
array
private
mixed
$icons
$setupDone
boolean
private
mixed
$setupDone
= \FALSE
$templateDir
string
private
mixed
$templateDir
Methods
getIconRealFileName()
Return the real path of an icon from its basename
private
getIconRealFileName(string $basename[, string $filenameFallback = "" ][, mixed $urlFallback = "" ]) : array<string|int, mixed>
Return the path of the first icon available in the user's preferred template and in the default template if missing. The file is searched with the extensions in the following order: png, svg, jpg, jpeg, gif, webp, avif.
Parameters
- $basename : string
-
Basename of a file icon
- $filenameFallback : string = ""
-
A fallback path
- $urlFallback : mixed = ""
Return values
array<string|int, mixed> —Path to an icon file or $filenameFallback value
storeIconInfo()
Store in the class members a link for each standard icon
private
storeIconInfo(string $basename) : mixed
Parameters
- $basename : string