Emulates a PDOStatement for native database adapters.
category | Zend |
---|---|
package | Zend_Db |
subpackage | Statement |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
bindColumn(string $column, mixed $param, mixed $type = null
) : boolean
string
Name the column in the result set, either by position or by name.
mixed
Reference to the PHP variable containing the value.
mixed
OPTIONAL
\Zend_Db_Statement_Exception |
---|
boolean
bindParam(mixed $parameter, mixed $variable, mixed $type= null
, mixed $length= null
, mixed $options= null
) : boolean
mixed
Name the parameter, either integer or string.
mixed
Reference to PHP variable containing the value.
mixed
OPTIONAL Datatype of SQL parameter.
mixed
OPTIONAL Length of SQL parameter.
mixed
OPTIONAL Other options.
\Zend_Db_Statement_Exception |
---|
boolean
bindValue(mixed $parameter, mixed $value, mixed $type = null
) : boolean
mixed
Name the parameter, either integer or string.
mixed
Scalar value to bind to the parameter.
mixed
OPTIONAL Datatype of the parameter.
\Zend_Db_Statement_Exception |
---|
boolean
closeCursor() : boolean
\Zend_Db_Statement_Exception |
---|
boolean
columnCount() : integer
Returns null if the statement has no result set metadata.
\Zend_Db_Statement_Exception |
---|
integer
The number of columns.errorCode() : string
\Zend_Db_Statement_Exception |
---|
string
error code.errorInfo() : array
\Zend_Db_Statement_Exception |
---|
array
execute(array $params = array()
) : boolean
array
OPTIONAL Values to bind to parameter placeholders.
\Zend_Db_Statement_Exception |
---|
boolean
fetch(integer $style= null
, integer $cursor= null
, integer $offset= null
) : mixed
integer
OPTIONAL Fetch mode for this fetch operation.
integer
OPTIONAL Absolute, relative, or other.
integer
OPTIONAL Number for absolute or relative cursors.
\Zend_Db_Statement_Exception |
---|
mixed
Array, object, or scalar depending on fetch mode.fetchAll(integer $style= null
, integer $col= null
) : array
integer
OPTIONAL Fetch mode.
integer
OPTIONAL Column number, if fetch mode is by column.
\Zend_Db_Statement_Exception |
---|
array
Collection of rows, each in a format by the fetch mode.fetchColumn(integer $col = 0
) : string
integer
OPTIONAL Position of the column to fetch.
\Zend_Db_Statement_Exception |
---|
string
fetchObject(string $class= 'stdClass'
, array $config= array()
) : mixed
string
OPTIONAL Name of the class to create.
array
OPTIONAL Constructor arguments for the class.
\Zend_Db_Statement_Exception |
---|
mixed
One object instance of the specified class.getAttribute(string $key) : mixed
string
Attribute name.
\Zend_Db_Statement_Exception |
---|
mixed
Attribute value.nextRowset() : boolean
\Zend_Db_Statement_Exception |
---|
boolean
rowCount() : integer
\Zend_Db_Statement_Exception |
---|
integer
The number of rows affected.setAttribute(string $key, mixed $val) : boolean
string
Attribute name.
mixed
Attribute value.
\Zend_Db_Statement_Exception |
---|
boolean
setFetchMode(integer $mode) : boolean
integer
The fetch mode.
\Zend_Db_Statement_Exception |
---|
boolean