Opendelight Array

« Previous Topic Table of Contents Next Topic »

These are system variables and MUST NOT be used during the application development. The table below lists all elements of Opendelight Array:

Variable Name Location Description
$_DELIGHT[DSN] System Config file Database Source Name
$_DELIGHT[DBUSER] System Config file Database Username
$_DELIGHT[DBPASSWORD] System Config file Database Password
$_DELIGHT[TABLEPREFIX] System Config file Database Table Prefix
$_DELIGHT[CTRID] Controller File Controller ID

When Opendelight is installed, the first four elements are defined. These values are stored in the file sys.inc.php, and are the same for all instances of the application. The fifth element is defined during runtime when a controller receives HTTP request.

NOTE:

Apart from the Opendelight Array, a few elements from $_REQUEST/ $_SESSION Super Globals should not be used as they store system runtime data. These are listed in the table below:

Variable Name Location Description
$_SESSION[USERID] Session Super Global User ID
$_SESSION[IDVERIFIER] Session Super Global User ID Verifier - additional verifyer is a string generated randomly and is unique to the user across the server. This is used to distinguish user from others if more than one application with same user object data share the same session pool in the server or cloud.
$_SESSION[REQUESTURL] Session Super Global This is the URL user requests which gets stored in session and is used to come back to the same location after signing in.
$_REQUEST[ID] Request Super Global This stores the event ID of application instance
$_REQUEST[IDN] Request Super Global This is name of application instance. This is used for beautifying URL, and also for tagging event's ID for readability during development
« Previous Topic Table of Contents Next Topic »

Opendelight Reference Guide (PDF)


(The entire online documentation is available in a single PDF for download and print.)