WIKINDX API 6.4.9

LOADICONS
in package

Load image icons used throughout WIKINDX

Table of Contents

$icons  : mixed
array
$setupDone  : mixed
boolean
$templateDir  : mixed
string
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

$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: gif, jpg, png, svg, webp.

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 $title) : mixed
Parameters
$basename : string
$title : mixed
Tags
see
getIconRealFileName()
Return values
mixed

Search results