DatabaseTrait
Table of Contents
- $db : PgSQL
- Database instance
- $db_config : TiqConfig
- Config instance
- $debug : bool
- Is debug mode or not
- $error_message : mixed
- Base error message, this belongs in com_think's configuration class
- configErrorMessage() : string
- If the TiqConfig error message constant is set, use it otherwise return the 'last resort' error message.
- getConfig() : TiqConfig
- getDb() : PgSQL
- Get database instance
- isDebug() : bool
- Is debug mode or not
Properties
$db
Database instance
public
static PgSQL
$db
= null
$db_config
Config instance
public
static TiqConfig
$db_config
= null
$debug
Is debug mode or not
public
static bool
$debug
= false
$error_message
Base error message, this belongs in com_think's configuration class
public
static mixed
$error_message
= 'An issue occurred, please contact ThinkIQ for Support and enable debugging'
Methods
configErrorMessage()
If the TiqConfig error message constant is set, use it otherwise return the 'last resort' error message.
public
static configErrorMessage() : string
Return values
string —getConfig()
public
static getConfig() : TiqConfig
Return values
TiqConfig —getDb()
Get database instance
public
static getDb() : PgSQL
Return values
PgSQL —isDebug()
Is debug mode or not
public
static isDebug() : bool