Manager
in package
FinalYes
Legacy DBMS registry for databases, tables, connection clients, and query logging.
Tags
Table of Contents
Constants
- LOG_LINELENGTH : mixed = 120
Properties
- $client : Client
- $databaseList : array<string|int, mixed>
- $tableList : array<string|int, mixed>
Methods
- _createLog() : void
- cron() : void
- getClient() : Client
- getDatabase() : Database
- getLogDirectory() : string
- getLogEnabled() : bool
- getTable() : Table
- setLogDirectory() : void
- setLogEnabled() : void
Constants
LOG_LINELENGTH
public
mixed
LOG_LINELENGTH
= 120
Properties
$client
protected
static Client
$client
$databaseList
protected
static array<string|int, mixed>
$databaseList
= []
$tableList
protected
static array<string|int, mixed>
$tableList
= []
Methods
_createLog()
public
static _createLog(string $sql) : void
Parameters
- $sql : string
cron()
public
static cron() : void
getClient()
public
static getClient() : Client
Return values
ClientgetDatabase()
public
static getDatabase(string $dbName) : Database
Parameters
- $dbName : string
Return values
DatabasegetLogDirectory()
public
static getLogDirectory() : string
Return values
stringgetLogEnabled()
public
static getLogEnabled() : bool
Return values
boolgetTable()
public
static getTable(string $dbName, string $tableName) : Table
Parameters
- $dbName : string
- $tableName : string
Return values
TablesetLogDirectory()
public
static setLogDirectory(string $directory) : void
Parameters
- $directory : string
setLogEnabled()
public
static setLogEnabled(bool $value) : void
Parameters
- $value : bool