RdbAdmin Module

Logger
in package

DB Logger class.

Tags
since
0.1
link

Copied the ideas and source code from here.

Table of Contents

Properties

$Container  : Container

Methods

__construct()  : mixed
Class constructor.
queryLog()  : void|null
Log the DB statement query.

Properties

Methods

__construct()

Class constructor.

public __construct(Container $Container) : mixed
Parameters
$Container : Container

The DI container class.

queryLog()

Log the DB statement query.

public queryLog(string $statement[, mixed $inputParams = null ][, mixed $inputDataTypes = null ]) : void|null
Parameters
$statement : string

The DB statement.

$inputParams : mixed = null

The input parameters from bindXXX(), execute(). This value can be null.

$inputDataTypes : mixed = null

The input data type from bindXXX(). This value can be null.

Return values
void|null

Return nothing (void) or maybe return null if config was set to do not write log and profiler is disabled.


        
On this page

Search results