Constants

JS_DEFERED

JS_DEFERED = 'defer'

JS_ASYNC

JS_ASYNC = 'async'

JS_IMMUTABLE

JS_IMMUTABLE = 'immutable'

Methods

addCssFile()

addCssFile(string  $file, string  $media = 'all') : mixed

Adds a CSS file.

Parameters

string $file
string $media

Throws

\rex_exception

Returns

mixed —

getCssFiles()

getCssFiles() : string[][]

Returns the CSS files.

Returns

string[][] —

addJsFile()

addJsFile(string  $file, array  $options = []) : mixed

Adds a JS file.

Parameters

string $file
array $options

Throws

\rex_exception

Returns

mixed —

getJsFiles()

getJsFiles() : string[]

Returns the JS files.

Returns

string[] —

getJsFilesWithOptions()

getJsFilesWithOptions() : array

Returns all JS files besides their options.

Returns

array —

setJsProperty()

setJsProperty(string  $key, mixed  $value) : mixed

Sets a JS property.

Parameters

string $key
mixed $value

Returns

mixed —

getJsProperties()

getJsProperties() : array

Returns the JS properties.

Returns

array —

setFavicon()

setFavicon(string  $file) : mixed

Sets the favicon path.

Parameters

string $file

Returns

mixed —

getFavicon()

getFavicon() : string

Returns the favicon.

Returns

string —

info()

info(string  $message, string  $cssClass = '') : string

Returns an info message.

Parameters

string $message
string $cssClass

Returns

string —

success()

success(string  $message, string  $cssClass = '') : string

Returns a success message.

Parameters

string $message
string $cssClass

Returns

string —

warning()

warning(string  $message, string  $cssClass = '') : string

Returns an warning message.

Parameters

string $message
string $cssClass

Returns

string —

error()

error(string  $message, string  $cssClass = '') : string

Returns an error message.

Parameters

string $message
string $cssClass

Returns

string —

toolbar()

toolbar(string  $content, string  $brand = null, string  $cssClass = null, mixed  $inverse = false) : string

Returns a toolbar.

Parameters

string $content
string $brand
string $cssClass
mixed $inverse

Returns

string —

content()

content(string  $content, string  $title = '') : string

Returns a content block.

Parameters

string $content
string $title

Returns

string —

title()

title(string  $head, null|string|array  $subtitle = null) : string

Returns the formatted title.

Parameters

string $head
null|string|array $subtitle

Throws

\InvalidArgumentException

Returns

string —

clangSwitch()

clangSwitch(\rex_context  $context, bool  $asDropDown = true) : string

Returns a clang switch.

Parameters

\rex_context $context
bool $asDropDown

Returns

string —

clangSwitchAsButtons()

clangSwitchAsButtons(\rex_context  $context, bool  $asDropDown = true) : string

Returns a clang switch.

Parameters

\rex_context $context
bool $asDropDown

Returns

string —

clangSwitchAsDropdown()

clangSwitchAsDropdown(\rex_context  $context) : string

Returns a clang switch.

Parameters

\rex_context $context

Returns

string —