Docs Goabase

UICode
in package

FinalYes

Table of Contents

Properties

$scriptCSS  : array<string|int, mixed>
$scriptJS  : array<string|int, mixed>
$cfgPathPublic  : string
$gbUrl  : string
$isUser  : bool
$styleCSS  : string
$token  : string
$tplLinkCSS  : string

Methods

__construct()  : mixed
addDatetime()  : string
Given a file, i.e. /css/base.css, replaces it with a string containing the file's mtime, i.e. /css/base.1221534296.css.
getMainCSS()  : void
Set link for the css file. unfortunately the ETag doesn't work proper once Less is enabled this is obsolete
getMainJS()  : array<string|int, mixed>
Setzt die wichtigsten JS zusammen
loadCSS()  : void
loadJS()  : void
loadSelect2CSS()  : void
setCss()  : void
addAlternateStylesheets()  : void

Properties

$scriptCSS

public array<string|int, mixed> $scriptCSS = []

$scriptJS

public array<string|int, mixed> $scriptJS = []

$cfgPathPublic

private string $cfgPathPublic

$styleCSS

private string $styleCSS

$tplLinkCSS

private string $tplLinkCSS

Methods

__construct()

public __construct() : mixed

addDatetime()

Given a file, i.e. /css/base.css, replaces it with a string containing the file's mtime, i.e. /css/base.1221534296.css.

public addDatetime(string $strFile) : string
Parameters
$strFile : string

The file to be loaded. Must be an absolute path (i.e. starting with slash).

Return values
string

The pseudo file name

needs mod_rewrite rule: RewriteRule ^(.*).[\d]{10}.(css|js)$ $1.$2 [L]

Source: http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files

getMainCSS()

Set link for the css file. unfortunately the ETag doesn't work proper once Less is enabled this is obsolete

public getMainCSS() : void

getMainJS()

Setzt die wichtigsten JS zusammen

public getMainJS([string $strDonorBanner = '' ]) : array<string|int, mixed>
Parameters
$strDonorBanner : string = ''
Return values
array<string|int, mixed>

loadCSS()

public loadCSS(string $strFile) : void
Parameters
$strFile : string

loadJS()

public loadJS(string|array<string|int, mixed> $files) : void
Parameters
$files : string|array<string|int, mixed>

loadSelect2CSS()

public loadSelect2CSS() : void

setCss()

public setCss(string $cssTag) : void
Parameters
$cssTag : string

addAlternateStylesheets()

private addAlternateStylesheets(string $strFile) : void
Parameters
$strFile : string

        
On this page

Search results