Application settings and Constants.
Singleton object. Set application constants at design and at runtime.
package | dstruct_common |
---|
countStatementHit()
get(string $key) : \mixed:
string
\mixed:
getInstance() : object
object
PrefsgetStatementHitCount() : integer
integer
set(string $key, mixed $val)
string
mixed
__construct()
Define any global compile time values stored in arrays etc here.
$instance : object
$props : array
APP_NAME : string
Caches are often shared across applications (for instance running on the same server) so use a unique application name to prevent corruption etc. Alternatively, an application running on multiple servers may want this string the same so that data is shared. It is still important to set this constant if you do not use a cache within your script as the framework caches information behind the scenes to improve speed.
CACHE_DEFAULT : string
Can be: APC, DStructMemCache, Database, another cache object which impliments DStructCacheInterface or leave blank for none. Not using APC (or using none) will not turn off the APC op-code cache.
CLICK_CONTROL_IDENTIFIER_IS_SESSION : \unknown
see | \ClickController |
---|
CURRENCY_SYMBOL : string
DB_CACHE : string
DB_CONNECTIONS : string
These are fed to the system when inc_common.php is loaded but they are LAZY connected. The framework uses PDO. Options:- connectionname,dbtype,host,username,password,schema,port,defaultcharset
DEV : boolean
Effects things such as error reporting. Can be used in your scripts to control behaviour - for example missing out some code for a package not available on your local system, controlling logging etc.
EMAIL_DEFAULT_HOST : string
All email settings can be overridden or set at runtime and therefore settings here are all optional.
see | \SMTPEmail |
---|
ERROR_DEFAULT_RECIPIENT : mixed
Enter the address you wish to receive these, or leave it blank to disable this feature.
ERROR_EMAIL_SUBJECT_LINE : string
ERROR_PREPEND_APP_NAME : boolean
FORMAT_DISPLAY_DATE : string
FORMAT_DISPLAY_TS : string
FORMAT_FORM_DATE : string
FORMAT_FORM_TS : string
MEMCACHE_SERVERS : string
see | \DStructMemCache |
---|
Application settings and Constants.
Singleton object. Set application constants at design and at runtime.
package | dstruct_common |
---|
countStatementHit()
get(string $key) : \mixed:
string
\mixed:
getInstance() : object
object
PrefsgetStatementHitCount() : integer
integer
set(string $key, mixed $val)
string
mixed
__construct()
Define any global compile time values stored in arrays etc here.
$instance : object
$props : array
APP_NAME : string
Caches are often shared across applications (for instance running on the same server) so use a unique application name to prevent corruption etc. Alternatively, an application running on multiple servers may want this string the same so that data is shared. It is still important to set this constant if you do not use a cache within your script as the framework caches information behind the scenes to improve speed.
CACHE_DEFAULT : string
Can be: APC, DStructMemCache, Database, another cache object which impliments DStructCacheInterface or leave blank for none. Not using APC (or using none) will not turn off the APC op-code cache.
CLICK_CONTROL_IDENTIFIER_IS_SESSION : boolean
Session identifier is preferred, but can use the user's IP if set to false. Unless there is some very good reason not to use the session then leave as true
see | \ClickController |
---|
CURRENCY_SYMBOL : string
DB_CACHE : string
DB_CONNECTIONS : string
These are fed to the system when inc_common.php is loaded but they are LAZY connected. The framework uses PDO. Options:- connectionname,dbtype,host,username,password,schema,port,defaultcharset
DEV : boolean
Effects things such as error reporting. Can be used in your scripts to control behaviour - for example missing out some code for a package not available on your local system, controlling logging etc.
EMAIL_DEFAULT_HOST : string
All email settings can be overridden or set at runtime and therefore settings here are all optional.
see | \SMTPEmail |
---|
ERROR_DEFAULT_RECIPIENT : mixed
Enter the address you wish to receive these, or leave it blank to disable this feature.
ERROR_EMAIL_SUBJECT_LINE : string
ERROR_PREPEND_APP_NAME : boolean
FORMAT_DISPLAY_DATE : string
FORMAT_DISPLAY_TS : string
FORMAT_FORM_DATE : string
FORMAT_FORM_TS : string
MEMCACHE_SERVERS : string
see | \DStructMemCache |
---|