Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Statement Class Reference

Public Member Functions

 setDriver (Pdo $driver)
 Set driver.
 
 setProfiler (Profiler\ProfilerInterface $profiler)
 
 getProfiler ()
 
 initialize (\PDO $connectionResource)
 Initialize.
 
 setResource (\PDOStatement $pdoStatement)
 Set resource.
 
 getResource ()
 Get resource.
 
 setSql ($sql)
 Set sql.
 
 getSql ()
 Get sql.
 
 setParameterContainer (ParameterContainer $parameterContainer)
 
 getParameterContainer ()
 
 prepare ($sql=null)
 
 isPrepared ()
 
 execute ($parameters=null)
 
 __clone ()
 Perform a deep clone.
 
- Public Member Functions inherited from ProfilerAwareInterface
 setProfiler (ProfilerInterface $profiler)
 

Protected Member Functions

 bindParametersFromContainer ()
 Bind parameters from container.
 

Protected Attributes

 $pdo = null
 
 $profiler = null
 
 $driver = null
 
 $sql = ''
 
 $isQuery = null
 
 $parameterContainer = null
 
 $parametersBound = false
 
 $resource = null
 
 $isPrepared = false
 

Member Function Documentation

__clone ( )

Perform a deep clone.

Returns
Statement A cloned statement
bindParametersFromContainer ( )
protected

Bind parameters from container.

execute (   $parameters = null)
Parameters
null | array | ParameterContainer$parameters
Exceptions
Exception\InvalidQueryException
Returns
Result

START Standard ParameterContainer Merging Block

END Standard ParameterContainer Merging Block

Implements StatementInterface.

getParameterContainer ( )
getProfiler ( )
Returns
null|Profiler
getResource ( )

Get resource.

Returns
mixed

Implements StatementInterface.

getSql ( )

Get sql.

Returns
string

Implements StatementContainerInterface.

initialize ( \PDO  $connectionResource)

Initialize.

Parameters
\PDO$connectionResource
Returns
Statement
isPrepared ( )
Returns
bool

Implements StatementInterface.

prepare (   $sql = null)
Parameters
string$sql
Exceptions
Exception\RuntimeException

Implements StatementInterface.

setDriver ( Pdo  $driver)

Set driver.

Parameters
Pdo$driver
Returns
Statement
setParameterContainer ( ParameterContainer  $parameterContainer)
Parameters
ParameterContainer$parameterContainer
Returns
Statement

Implements StatementContainerInterface.

setProfiler ( Profiler\ProfilerInterface  $profiler)
Parameters
Profiler\ProfilerInterface$profiler
Returns
Statement
setResource ( \PDOStatement  $pdoStatement)

Set resource.

Parameters
\PDOStatement$pdoStatement
Returns
Statement
setSql (   $sql)

Set sql.

Parameters
string$sql
Returns
Statement

Implements StatementContainerInterface.

Member Data Documentation

$driver = null
protected
$isPrepared = false
protected
$isQuery = null
protected
$parameterContainer = null
protected
$parametersBound = false
protected
$pdo = null
protected
$profiler = null
protected
$resource = null
protected
$sql = ''
protected