Docs Goabase

UICode
in package

Table of Contents

Properties

$cfgPathPublic  : string
$cfgStyles  : array<string|int, mixed>
$styleCSS  : 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()  : array<string|int, mixed>
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
loadFile()  : string
loadSel2()  : string
addAlternateStylesheets()  : string

Properties

$cfgPathPublic

private string $cfgPathPublic

$cfgStyles

private array<string|int, mixed> $cfgStyles

$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() : array<string|int, mixed>
Return values
array<string|int, mixed>

getMainJS()

Setzt die wichtigsten JS zusammen

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

loadFile()

public loadFile(string $strFile) : string
Parameters
$strFile : string
Return values
string

loadSel2()

public loadSel2() : string
Return values
string

addAlternateStylesheets()

private addAlternateStylesheets(string $strFile) : string
Parameters
$strFile : string
Return values
string

        
On this page

Search results