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

Public Member Functions

 __construct ($bufferResults=false)
 
 setDriver (Mysqli $driver)
 Set driver.
 
 setProfiler (Profiler\ProfilerInterface $profiler)
 
 getProfiler ()
 
 initialize (\mysqli $mysqli)
 Initialize.
 
 setSql ($sql)
 Set sql.
 
 setParameterContainer (ParameterContainer $parameterContainer)
 Set Parameter container.
 
 getResource ()
 Get resource.
 
 setResource (\mysqli_stmt $mysqliStatement)
 Set resource.
 
 getSql ()
 Get sql.
 
 getParameterContainer ()
 Get parameter count.
 
 isPrepared ()
 Is prepared.
 
 prepare ($sql=null)
 Prepare.
 
 execute ($parameters=null)
 Execute.
 
- Public Member Functions inherited from ProfilerAwareInterface
 setProfiler (ProfilerInterface $profiler)
 

Protected Member Functions

 bindParametersFromContainer ()
 Bind parameters from container.
 

Protected Attributes

 $mysqli = null
 
 $driver = null
 
 $profiler = null
 
 $sql = ''
 
 $parameterContainer = null
 
 $resource = null
 
 $isPrepared = false
 
 $bufferResults = false
 

Constructor & Destructor Documentation

__construct (   $bufferResults = false)
Parameters
bool$bufferResults

Member Function Documentation

bindParametersFromContainer ( )
protected

Bind parameters from container.

Returns
void
execute (   $parameters = null)

Execute.

Parameters
null | array | ParameterContainer$parameters
Exceptions
Exception\RuntimeException
Returns
mixed

START Standard ParameterContainer Merging Block

END Standard ParameterContainer Merging Block

Implements StatementInterface.

getParameterContainer ( )

Get parameter count.

Returns
ParameterContainer

Implements StatementContainerInterface.

getProfiler ( )
Returns
null|Profiler
getResource ( )

Get resource.

Returns
mixed

Implements StatementInterface.

getSql ( )

Get sql.

Returns
string

Implements StatementContainerInterface.

initialize ( \mysqli  $mysqli)

Initialize.

Parameters
\mysqli$mysqli
Returns
Statement
isPrepared ( )

Is prepared.

Returns
bool

Implements StatementInterface.

prepare (   $sql = null)

Prepare.

Parameters
string$sql
Exceptions
Exception\InvalidQueryException
Exception\RuntimeException
Returns
Statement

Implements StatementInterface.

setDriver ( Mysqli  $driver)

Set driver.

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

Set Parameter container.

Parameters
ParameterContainer$parameterContainer
Returns
Statement

Implements StatementContainerInterface.

setProfiler ( Profiler\ProfilerInterface  $profiler)
Parameters
Profiler\ProfilerInterface$profiler
Returns
Statement
setResource ( \mysqli_stmt  $mysqliStatement)

Set resource.

Parameters
\mysqli_stmt$mysqliStatement
Returns
Statement
setSql (   $sql)

Set sql.

Parameters
string$sql
Returns
Statement

Implements StatementContainerInterface.

Member Data Documentation

$bufferResults = false
protected
$driver = null
protected
$isPrepared = false
protected
$mysqli = null
protected
$parameterContainer = null
protected
$profiler = null
protected
$resource = null
protected
$sql = ''
protected