DbConnection

Extends\CDbConnection

package

Default

Methods

__construct

__construct( $dsn = '', $username = '', $password = '')

Arguments

$dsn

$username

$password

initConnection

initConnection( $pdo)

Arguments

$pdo

Quotes a string value for use in a query.

quoteValueExtended(string $str,integer $quoteParam): string
see http://www.php.net/manual/en/function.PDO-quote.php

Arguments

$str

string

string to be quoted

$quoteParam

integer

Parameter for PDO::quote function.

Response

string

the properly quoted string

Properties

active

active :boolean

Whether the DB connection is established.

Type(s)

boolean