\web\lib\userSkinjob

This class handles user UI skin handling.

Summary

Methods
Properties
Constants
__construct()
findResourceUrl()
$skin
$nomenclature_fed
$nomenclature_inst
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$skin

$skin : 

The skin that was selected

Type

$nomenclature_fed

$nomenclature_fed : 

the custom displayable variant of the term 'federation'

Type

$nomenclature_inst

$nomenclature_inst : 

the custom displayable variant of the term 'institution'

Type

Methods

__construct()

__construct(  selectedSkin = NULL) : 

Initialise the skin.

Parameters

selectedSkin

the name of the skin to use

Returns

findResourceUrl()

findResourceUrl(  resourcetype,   filename,  submodule) : string|bool

constructs a URL to the main resources directories. Searches for the file first in the current skin's resource dir, then falls back to the global resources dir, or returns FALSE if the requested file could not be found at either location.

Parameters

resourcetype

which type of resource do we need a URL for?

filename

the name of the file being searched.

submodule

Throws

\Exception

if something went wrong during the URL construction

Returns

string|bool —

the URL to the resource, or FALSE if this file does not exist