\GLOBALS

GLOBALS

Rather than using the PHP $GLOBALS array for common variables, we store, set and access them from here.

Summary

Methods
Properties
Constants
__construct()
setVars()
getVars()
getDirtyVars()
incrementDbQueries()
getDbQueries()
incrementDbConnectionTimeElapsed()
incrementDbTimeElapsed()
getDbConnectionTimeElapsed()
getDbTimeElapsed()
clearTplVar()
tplVarExists()
buildTplVarString()
addTplVar()
setTplVar()
getTplVar()
getTplVarKeys()
setPageStartingTime()
setPageEndingTime()
getPageElapsedTime()
setError()
getError()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

GLOBALS

Returns

setVars()

setVars(mixed||string|int  cleanInput, mixed||string|int  dirtyInput) : 

Set $vars

$cleanInput has been stripped of HTML etc.

Parameters

mixed||string|int cleanInput
mixed||string|int dirtyInput

Returns

getVars()

getVars() : mixed||string|int

Get $vars

Returns

mixed||string|int —

getDirtyVars()

getDirtyVars() : mixed||string|int

Get $dirtyVars

Returns

mixed||string|int —

incrementDbQueries()

incrementDbQueries() : 

Increment the DB query counter

Returns

getDbQueries()

getDbQueries() : 

Get the number of DB queries this script run

Returns

incrementDbConnectionTimeElapsed()

incrementDbConnectionTimeElapsed(  appendTime) : 

Increment the DB connection time elapsed

Parameters

appendTime

Returns

incrementDbTimeElapsed()

incrementDbTimeElapsed(  appendTime) : 

Increment the DB time elapsed

Parameters

appendTime

Returns

getDbConnectionTimeElapsed()

getDbConnectionTimeElapsed() : 

Get the time elapsed during DB connection

Returns

getDbTimeElapsed()

getDbTimeElapsed() : 

Get the time elapsed during DB queries

Returns

clearTplVar()

clearTplVar(  variableName) : 

Clear data stored of a template variable

Parameters

variableName

Returns

tplVarExists()

tplVarExists(  variableName) : 

See if some data are defined for a template variable

Parameters

variableName

Returns

buildTplVarString()

buildTplVarString(  variableName,   glueString) : 

Get a concatenated string of the data of a template variable (involve the are only strings)

Parameters

variableName
glueString

Returns

addTplVar()

addTplVar(  variableName,   variableValue) : 

Add a data to a template variable

Parameters

variableName
variableValue

Returns

setTplVar()

setTplVar(  variableName,   variableValue) : 

Set the data of a template variable after clearing its current data

Parameters

variableName
variableValue

Returns

getTplVar()

getTplVar(  variableName) : mixed||string|int

Get the data of a template variable

Parameters

variableName

Returns

mixed||string|int —

getTplVarKeys()

getTplVarKeys() : 

Get the list of all template variables name which have data stored

Returns

setPageStartingTime()

setPageStartingTime(  pageStartingTime) : 

set starting time of the page

Parameters

pageStartingTime

Returns

setPageEndingTime()

setPageEndingTime(  pageEndingTime) : 

set ending time of the page

Parameters

pageEndingTime

Returns

getPageElapsedTime()

getPageElapsedTime() : 

Get elapsed time of the page

Returns

setError()

setError(  error) : 

set error message

Parameters

error

Returns

getError()

getError() : 

get error message

Returns