GLOBALS

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

version 1
package wikindx4\core\startup
author Mark Grimshaw

 Methods

GLOBALS

__construct() 

Set the output script

buildOutputScript(string $script) 
Static

Parameters

$script

string

Set the browser output page body

buildOutputString(string $append) 
Static

This can be called multiple times with the $append sting being appended to.

Parameters

$append

string

Get the number of DB queries this script run

getDbQueries() : int
Static

Returns

int

Get $dirtyVars

getDirtyVars() : array
Static

Returns

array

Get the browser output page heading

getOutputHeading() : string
Static

Returns

string

Get the browser help output

getOutputHelp() : string
Static

Returns

string

Get the output script

getOutputScript() : string
Static

Returns

string

Get the browser output page body

getOutputString() : string
Static

Returns

string

Get $vars

getVars() : array
Static

Returns

array

Increment the DB query counter

incrementDbQueries() 
Static

Set the browser output page heading

setOutputHeading(string $heading) 
Static

Parameters

$heading

string

Set the browser help output

setOutputHelp(string $help) 
Static

Parameters

$help

string

Set $vars

setVars(array $cleanInput, array $dirtyInput) 
Static

$cleanInput has been stripped of HTML etc.

Parameters

$cleanInput

array

$dirtyInput

array

 Properties

 

$WIKINDX_DB_QUERIES 
 

$WIKINDX_OUTPUT_HEADING 
 

$WIKINDX_OUTPUT_HELP 
 

$WIKINDX_OUTPUT_SCRIPT 
 

$WIKINDX_OUTPUT_STRING 
 

$dirtyVars 
 

$vars