Amanu
Projektmanagement für Selbstständige und Freelancer
ScriptLoader Class Reference

Static Public Member Functions

static echoScripts ($debug=false)
 
static renderScriptsByTemplate ()
 

Static Private Member Functions

static echoAllScripts ()
 
static echoCompressedScripts ()
 
static getScriptsByTemplate ()
 
static cacheCompressCss ()
 
static cacheCompressJs ()
 

Detailed Description

Static class that will output all necessary script tags and will optionally concatenate and compress them

This file is part of the project codename "AMANUENSIS"

Author
Sebastian Antosch s.ant.nosp@m.osch.nosp@m.@i-sa.nosp@m.n.de

Member Function Documentation

static echoScripts (   $debug = false)
static

This static function will generate an html output making sure all needed scripts will be included in the head

Parameters
bool$debug- whether or not the scripts should be concatenated and compressed, default = false
Returns
string - html which makes sure all scripts will be loaded
static echoAllScripts ( )
staticprivate

Echoes HTML tags to include all needed scripts

Returns
string - the HTML that includes all single scripts
static echoCompressedScripts ( )
staticprivate

Echoes HTML tags to include all compressed and concatenated scripts

Returns
string - the HTML that includes all concatenated and compressed scripts
static renderScriptsByTemplate ( )
static

Renders the scriptsByTemplate

static getScriptsByTemplate ( )
staticprivate

Gets an array with paths to rendered scriptsByTemplate

Returns
array - an array of paths to rendered scripts by template
static cacheCompressCss ( )
staticprivate

merges, caches and compresses all css files if necessary

Returns
String - the path to the generated css file
static cacheCompressJs ( )
staticprivate

merges, caches and compresses all js files if necessary

Returns
String - the path to the generated js file

The documentation for this class was generated from the following file: