Documentation

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_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

isDebug()

Is debug mode or not

public static isDebug() : bool
Return values
bool

Search results