vB_Template_Runtime
in package
uses
vB_Trait_NoSerialize
Table of Contents
Properties
- $units : mixed
Methods
- __serialize() : array<string|int, mixed>
- __sleep() : array<string|int, mixed>
- __unserialize() : void
- __wakeup() : void
- addStyleVar() : mixed
- applyStylevarInheritanceParameters() : string
- Wrapper function that applies the inheritance color transformation values to the inherited color and returns the resultant color value.
- buildUrl() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- buildUrlAdmincpTemp() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- date() : mixed
- datetime() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- debugExit() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- debugTimer() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- doRedirect() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- escapeJS() : mixed
- fetchCustomStylevar() : mixed
- fetchStyleVar() : mixed
- hook() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- includeCss() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- includeCssFile() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- includeHeadLink() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- includeJs() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- includeSpriteFile() : string
- Returns the full path/URL to the sprite file. This is implemented in the core runtime implementation because CSS is rendered (via css.php) in core. There is currently no implementation in the frontend runtime class.
- includeTemplate() : string
- Includes a template
- numberFormat() : mixed
- parseAction() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- parseData() : array<string|int, mixed>
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- parseDataWithErrors() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- parseJSON() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- parsePhrase() : mixed
- parseSchema() : string
- This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
- runMaths() : mixed
- time() : mixed
- urlEncode() : mixed
- vBVar() : mixed
Properties
$units
public
static mixed
$units
= array('%', 'px', 'pt', 'em', 'rem', 'ch', 'ex', 'pc', 'in', 'cm', 'mm', 'vw', 'vh', 'vmin', 'vmax')
Methods
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(array<string|int, mixed> $serialized) : void
Parameters
- $serialized : array<string|int, mixed>
__wakeup()
public
__wakeup() : void
addStyleVar()
public
static addStyleVar(mixed $name, mixed $value[, mixed $datatype = 'string' ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $datatype : mixed = 'string'
applyStylevarInheritanceParameters()
Wrapper function that applies the inheritance color transformation values to the inherited color and returns the resultant color value.
public
static applyStylevarInheritanceParameters(mixed $inheritedValue, mixed $inheritParameters) : string
Parameters
- $inheritedValue : mixed
- $inheritParameters : mixed
Return values
string —The new color produced by the transformation.
buildUrl()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static buildUrl() : string
Return values
stringbuildUrlAdmincpTemp()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static buildUrlAdmincpTemp() : string
Return values
stringdate()
public
static date(mixed $timestamp[, mixed $format = 'r' ][, mixed $doyestoday = 0 ][, mixed $adjust = 1 ]) : mixed
Parameters
- $timestamp : mixed
- $format : mixed = 'r'
- $doyestoday : mixed = 0
- $adjust : mixed = 1
datetime()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static datetime(mixed $timestamp[, mixed $format = 'date, time' ][, mixed $formatdate = '' ][, mixed $formattime = '' ]) : string
Parameters
- $timestamp : mixed
- $format : mixed = 'date, time'
- $formatdate : mixed = ''
- $formattime : mixed = ''
Return values
stringdebugExit()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static debugExit() : string
Return values
stringdebugTimer()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static debugTimer(mixed $timerName) : string
Parameters
- $timerName : mixed
Return values
stringdoRedirect()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static doRedirect() : string
Return values
stringescapeJS()
public
static escapeJS(mixed $javascript) : mixed
Parameters
- $javascript : mixed
fetchCustomStylevar()
public
static fetchCustomStylevar(mixed $stylevar[, mixed $user = false ]) : mixed
Parameters
- $stylevar : mixed
- $user : mixed = false
fetchStyleVar()
public
static fetchStyleVar(mixed $stylevar[, mixed $withUnits = false ]) : mixed
Parameters
- $stylevar : mixed
- $withUnits : mixed = false
hook()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static hook(mixed $hook) : string
Parameters
- $hook : mixed
Return values
stringincludeCss()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static includeCss() : string
Return values
stringincludeCssFile()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static includeCssFile() : string
Return values
stringincludeHeadLink()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static includeHeadLink() : string
Return values
stringincludeJs()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static includeJs() : string
Return values
stringincludeSpriteFile()
Returns the full path/URL to the sprite file. This is implemented in the core runtime implementation because CSS is rendered (via css.php) in core. There is currently no implementation in the frontend runtime class.
public
static includeSpriteFile(mixed $filename) : string
Parameters
- $filename : mixed
Return values
string —Sprite URL
includeTemplate()
Includes a template
public
static includeTemplate(string $templateName[, array<string|int, mixed> $arguments = array() ]) : string
This includeTemplate functionality is mainly included since CSS is rendered in core and we use template includes in CSS files. Otherwise this would use the presentation layer implementation.
Parameters
- $templateName : string
-
Template to include
- $arguments : array<string|int, mixed> = array()
-
Any number items which are the name/value pairs to pass to the template as variables.
Return values
string —Rendered template
numberFormat()
public
static numberFormat(mixed $number[, mixed $decimals = 0 ]) : mixed
Parameters
- $number : mixed
- $decimals : mixed = 0
parseAction()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static parseAction() : string
Return values
stringparseData()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static parseData() : array<string|int, mixed>
Return values
array<string|int, mixed>parseDataWithErrors()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static parseDataWithErrors() : string
Return values
stringparseJSON()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static parseJSON(string $searchJSON, array<string|int, mixed> $arguments) : string
Parameters
- $searchJSON : string
- $arguments : array<string|int, mixed>
Return values
stringparsePhrase()
public
static parsePhrase(mixed $phraseName) : mixed
Parameters
- $phraseName : mixed
parseSchema()
This method is defined just to avoid errors while saving the template. The real implementation is in the presentation layer.
public
static parseSchema(mixed $arg1, mixed ...$args) : string
Parameters
- $arg1 : mixed
- $args : mixed
Return values
stringrunMaths()
public
static runMaths(mixed $str) : mixed
Parameters
- $str : mixed
time()
public
static time(mixed $timestamp) : mixed
Parameters
- $timestamp : mixed
urlEncode()
public
static urlEncode(mixed $text) : mixed
Parameters
- $text : mixed
vBVar()
public
static vBVar(mixed $value) : mixed
Parameters
- $value : mixed