System Class provided by System to start the environment (system clock & config aswell as optional includes) and handles the Systemwide Database Credentials
| package |
SYSTEM |
|---|
getSystemDBInfo() : object
Supports MYSQL and PostgreSQL
objectReturns \SYSTEM\DB\DBInfoPG or \SYSTEM\DB\DBInfoMYS depending on configrated Database.
isSystemDbInfoPG() : boolean
booleanReturns true if Databaseconnection is PostgreSQL else false.
register_errorhandler_dbwriter() : null
nullReturns null
register_errorhandler_jsonoutput() : null
nullReturns null
start(array $config, boolean $short_exc = true, boolean $short_res = true, boolean $error_db = true, boolean $error_json = true) : null
Flushes given Config values Starts the internal clock. Sets Error-reporting level according to config (opt)Allows to turn off optional includes which pollute global Namespace. (opt)Register Error-Handler-DB-Writer to log System Events to the Database (opt)Register Error-Handler-JSON-Output to return Errors as JSON.
Config has following format array( array(ID, VALUE), array(ID, VALUE)) For IDs @see \SYSTEM\CONFIG\config_ids Extend this class to define your own.
arrayConfiguration Array passed upon Enviroment Start
booleanInclude Shortcut for System Log Classes in global Namespace
booleanInclude Shortcut for System Result Classes in global Namespace
booleanInclude Shortcut for System Log Classes in global Namespace
booleanInclude Shortcut for System Log Classes in global Namespace
nullReturns null.