DbConnection
extends CDbConnection
in package
Table of Contents
Properties
- $active : bool
Methods
- __construct() : mixed
- quoteValueExtended() : string
- Quotes a string value for use in a query.
- initConnection() : mixed
Properties
$active
public
bool
$active
Whether the DB connection is established.
Methods
__construct()
public
__construct([mixed $dsn = '' ][, mixed $username = '' ][, mixed $password = '' ]) : mixed
Parameters
- $dsn : mixed = ''
- $username : mixed = ''
- $password : mixed = ''
quoteValueExtended()
Quotes a string value for use in a query.
public
quoteValueExtended(string $str, int $quoteParam) : string
Parameters
- $str : string
-
string to be quoted
- $quoteParam : int
-
Parameter for PDO::quote function.
Tags
Return values
string —the properly quoted string
initConnection()
protected
initConnection(mixed $pdo) : mixed
Parameters
- $pdo : mixed