rex_view
in package
Table of Contents
- JS_ASYNC = 'async'
- JS_DEFERED = 'defer'
- JS_IMMUTABLE = 'immutable'
- addCssFile() : mixed
- Adds a CSS file.
- addJsFile() : mixed
- Adds a JS file.
- clangSwitch() : string
- Returns a clang switch.
- clangSwitchAsButtons() : string
- Returns a clang switch.
- clangSwitchAsDropdown() : string
- Returns a clang switch.
- content() : string
- Returns a content block.
- error() : string
- Returns an error message.
- getCssFiles() : array<string|int, array<string|int, string>>
- Returns the CSS files.
- getFavicon() : string
- Returns the favicon.
- getJsFiles() : array<string|int, string>
- Returns the JS files.
- getJsFilesWithOptions() : array<string|int, mixed>
- Returns all JS files besides their options.
- getJsProperties() : array<string|int, mixed>
- Returns the JS properties.
- info() : string
- Returns an info message.
- setFavicon() : mixed
- Sets the favicon path.
- setJsProperty() : mixed
- Sets a JS property.
- success() : string
- Returns a success message.
- title() : string
- Returns the formatted title.
- toolbar() : string
- Returns a toolbar.
- warning() : string
- Returns an warning message.
Constants
JS_ASYNC
public
mixed
JS_ASYNC
= 'async'
JS_DEFERED
public
mixed
JS_DEFERED
= 'defer'
JS_IMMUTABLE
public
mixed
JS_IMMUTABLE
= 'immutable'
Methods
addCssFile()
Adds a CSS file.
public
static addCssFile(string $file[, string $media = 'all' ]) : mixed
Parameters
- $file : string
- $media : string = 'all'
Tags
Return values
mixed —addJsFile()
Adds a JS file.
public
static addJsFile(string $file[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $file : string
- $options : array<string|int, mixed> = []
Tags
Return values
mixed —clangSwitch()
Returns a clang switch.
public
static clangSwitch(rex_context $context[, bool $asDropDown = true ]) : string
Parameters
- $context : rex_context
- $asDropDown : bool = true
Return values
string —clangSwitchAsButtons()
Returns a clang switch.
public
static clangSwitchAsButtons(rex_context $context[, bool $asDropDown = true ]) : string
Parameters
- $context : rex_context
- $asDropDown : bool = true
Return values
string —clangSwitchAsDropdown()
Returns a clang switch.
public
static clangSwitchAsDropdown(rex_context $context) : string
Parameters
- $context : rex_context
Return values
string —content()
Returns a content block.
public
static content(string $content[, string $title = '' ]) : string
Parameters
- $content : string
- $title : string = ''
Return values
string —error()
Returns an error message.
public
static error(string $message[, string $cssClass = '' ]) : string
Parameters
- $message : string
- $cssClass : string = ''
Tags
Return values
string —getCssFiles()
Returns the CSS files.
public
static getCssFiles() : array<string|int, array<string|int, string>>
Return values
array<string|int, array<string|int, string>> —getFavicon()
Returns the favicon.
public
static getFavicon() : string
Return values
string —getJsFiles()
Returns the JS files.
public
static getJsFiles() : array<string|int, string>
Return values
array<string|int, string> —getJsFilesWithOptions()
Returns all JS files besides their options.
public
static getJsFilesWithOptions() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getJsProperties()
Returns the JS properties.
public
static getJsProperties() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —info()
Returns an info message.
public
static info(string $message[, string $cssClass = '' ]) : string
Parameters
- $message : string
- $cssClass : string = ''
Tags
Return values
string —setFavicon()
Sets the favicon path.
public
static setFavicon(string $file) : mixed
Parameters
- $file : string
Return values
mixed —setJsProperty()
Sets a JS property.
public
static setJsProperty(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed
Return values
mixed —success()
Returns a success message.
public
static success(string $message[, string $cssClass = '' ]) : string
Parameters
- $message : string
- $cssClass : string = ''
Tags
Return values
string —title()
Returns the formatted title.
public
static title(string $head[, null|string|array<string|int, mixed> $subtitle = null ]) : string
Parameters
- $head : string
- $subtitle : null|string|array<string|int, mixed> = null
Tags
Return values
string —toolbar()
Returns a toolbar.
public
static toolbar(string $content[, string $brand = null ][, string $cssClass = null ][, mixed $inverse = false ]) : string
Parameters
- $content : string
- $brand : string = null
- $cssClass : string = null
- $inverse : mixed = false
Return values
string —warning()
Returns an warning message.
public
static warning(string $message[, string $cssClass = '' ]) : string
Parameters
- $message : string
- $cssClass : string = ''