Documentation

Connection extends AbstractConnectionMiddleware
in package

FinalYes

Table of Contents

Properties

$connection  : Connection
$wrappedConnection  : Connection

Methods

__construct()  : mixed
beginTransaction()  : mixed
{@inheritDoc}
commit()  : mixed
{@inheritDoc}
exec()  : int
getNativeConnection()  : resource|object
getServerVersion()  : string
Returns information about the version of the database server connected to.
getWrappedConnection()  : PDO
lastInsertId()  : mixed
{@inheritDoc}
prepare()  : Statement
query()  : Result
quote()  : mixed
{@inheritDoc}
rollBack()  : mixed
{@inheritDoc}

Properties

Methods

getNativeConnection()

public getNativeConnection() : resource|object
Return values
resource|object

getServerVersion()

Returns information about the version of the database server connected to.

public getServerVersion() : string
Return values
string

getWrappedConnection()

public getWrappedConnection() : PDO
Tags
deprecated

Call getNativeConnection() instead.

Return values
PDO

lastInsertId()

{@inheritDoc}

public lastInsertId([mixed $name = null ]) : mixed
Parameters
$name : mixed = null

quote()

{@inheritDoc}

public quote(mixed $value[, mixed $type = ParameterType::STRING ]) : mixed
Parameters
$value : mixed
$type : mixed = ParameterType::STRING

        
On this page

Search results