Class Statement

Summary

Fully Qualified Name: Zend\Db\Adapter\Driver\Sqlsrv\Statement
Implements: StatementInterface, ProfilerAwareInterface

Description

Methods

Name Description Defined By
execute() Execute Statement
getParameterContainer() Statement
getProfiler() Statement
getResource() Get resource Statement
getSql() Get sql Statement
initialize() One of two resource types will be provided here: a) "SQL Server Connection" when a prepared statement needs to still be produced b) "SQL Server Statement" when a prepared statement has been already produced (there will need to already be a bound param set if it applies to this query) Statement
isPrepared() Statement
prepare() Statement
setDriver() Set driver Statement
setParameterContainer() Set parameter container Statement
setPrepareOptions() Statement
setPrepareParams() Statement
setProfiler() Statement
setResource() Statement
setSql() Statement

Method Details

execute()

Execute

Parameter Name Type Description
$parameters null|array|\ParameterContainer

Returns: \Result

getParameterContainer()

Returns: \ParameterContainer

getProfiler()

Returns: null|\Profiler\ProfilerInterface

getResource()

Get resource

Returns: resource

getSql()

Get sql

Returns: string

initialize()

One of two resource types will be provided here: a) "SQL Server Connection" when a prepared statement needs to still be produced b) "SQL Server Statement" when a prepared statement has been already produced (there will need to already be a bound param set if it applies to this query)

Parameter Name Type Description
$resource resource

Returns: self Provides a fluent interface

isPrepared()

Returns: bool

prepare()

Parameter Name Type Description
$sql string
$options array

Returns: self Provides a fluent interface

setDriver()

Set driver

Parameter Name Type Description
$driver \Sqlsrv

Returns: self Provides a fluent interface

setParameterContainer()

Set parameter container

Parameter Name Type Description
$parameterContainer \ParameterContainer

Returns: self Provides a fluent interface

setPrepareOptions()

Parameter Name Type Description
$prepareOptions array

Returns:

setPrepareParams()

Parameter Name Type Description
$prepareParams array

Returns:

setProfiler()

Parameter Name Type Description
$profiler \Profiler\ProfilerInterface

Returns: self Provides a fluent interface

setResource()

Parameter Name Type Description
$resource
$resource

Returns: self Provides a fluent interface

setSql()

Parameter Name Type Description
$sql string

Returns: self Provides a fluent interface

Top