FORMfields


FORMfields.FfGlobals

Class FfGlobals

FfGlobals

public class FfGlobals

FfGlobas provides a small set of helper functions for global vaiables.

Since:
FORMfields v3.0

Method Summary
void

defineIfNotDefined(string name, string value)

Creates a named constant if the constant hasn't already been defined.

boolean

existsAndIsNotBlank(string key, array search)

Returns true if key is an index in search and if the value at that position is more than just whitespace.

void

getVerbose()

Various FORMfields elements echo debug information when verbose printing is turned on.

Method Detail

defineIfNotDefined

public void defineIfNotDefined(string name, string value)

Creates a named constant if the constant hasn't already been defined.

Parameters:
name - the name of the defined constant
value - the value of the defined constant
Since:
FORMfields v3.0

existsAndIsNotBlank

public boolean existsAndIsNotBlank(string key, array search)

Returns true if key is an index in search and if the value at that position is more than just whitespace.

Parameters:
key - an array index
search - an array of strings
Returns:
true if the key exists and the value is not blank
Since:
FORMfields v3.0

getVerbose

public void getVerbose()

Various FORMfields elements echo debug information when verbose printing is turned on. If FF_GLOBALS_VERBOSE is true, FF_VERBOSE is true or $_REQUEST["FF_GLOBALS_VERBOSE"] is true, verbose printing is turned on. Verbose printing cannot be turned on if FF_GLOBALS_STRICT_SECURITY is true.

Since:
FORMfields v3.0

FORMfields