Class PDO
Class extending the php PDO Class for logging purpose
- PDO
- LoggedPDO\PDO
Namespace: LoggedPDO
Uses: Log.php simple usage: <code> require_once 'loggedPDO/PDO.php'; $logger = Log::factory('console', '', 'PDO'); $pdo = new \LoggedPDO\PDO($connstr, DB_USERNAME, DB_PASSWORD, null, $logger); </code> users of a firebug logger might alternatively like the Log_firebugJSON class <code> require_once 'loggedPDO/Log_firebugJSON.php'; $logger = Log::factory('console', '', 'PDO'); </code> {@inheritdoc}
Located at src/shared/libs/loggedPDO/PDO.php
Uses: Log.php simple usage: <code> require_once 'loggedPDO/PDO.php'; $logger = Log::factory('console', '', 'PDO'); $pdo = new \LoggedPDO\PDO($connstr, DB_USERNAME, DB_PASSWORD, null, $logger); </code> users of a firebug logger might alternatively like the Log_firebugJSON class <code> require_once 'loggedPDO/Log_firebugJSON.php'; $logger = Log::factory('console', '', 'PDO'); </code> {@inheritdoc}
Located at src/shared/libs/loggedPDO/PDO.php
public
|
#
__construct( Log $dsn, mixed $username = null, mixed $password = null, mixed $options = null, Log $log = null )
|
public
|
|
public
|
|
public
|
|
public
Log
|
|
public
|
|
public
float
|
|
public
integer
|
__sleep(),
__wakeup(),
beginTransaction(),
commit(),
errorCode(),
errorInfo(),
getAttribute(),
getAvailableDrivers(),
inTransaction(),
lastInsertId(),
quote(),
rollBack(),
setAttribute()
|
public
Log
|
$log |
|
#
PEAR Log object that will be used for logging |
public static
string
|
$LOG_QUERY | "query" |
|
public static
string
|
$LOG_TIME | "time" |
|
public static
string
|
$LOG_TYPE | "method" |
|
public static
string
|
$LOG_PARAMS | "parameters" |
|
public
boolean
|
$log_replace_params | true |
#
If true, parameters will be inserted into query for logging. If false, query and parameters will be logged separately. |