Constructor for a statement.
Bind a column of the statement result set to a PHP variable.
bool
bindColumn
(string $column, &$param, [mixed $type = null], mixed $param)
-
string
$column: Name the column in the result set, either by position or by name.
-
mixed
$param: Reference to the PHP variable containing the value.
-
mixed
$type: OPTIONAL
-
&$param
Implementation of:
- Zend_Db_Statement_Interface::bindColumn()
- Bind a column of the statement result set to a PHP variable.
Redefined in descendants as:
Binds a parameter to the specified variable name.
bool
bindParam
(mixed $parameter, &$variable, [mixed $type = null], [mixed $length = null], [mixed $options = null], mixed $variable)
-
mixed
$parameter: Name the parameter, either integer or string.
-
mixed
$variable: Reference to PHP variable containing the value.
-
mixed
$type: OPTIONAL Datatype of SQL parameter.
-
mixed
$length: OPTIONAL Length of SQL parameter.
-
mixed
$options: OPTIONAL Other options.
-
&$variable
Implementation of:
- Zend_Db_Statement_Interface::bindParam()
- Binds a parameter to the specified variable name.
Binds a value to a parameter.
bool
bindValue
(mixed $parameter, mixed $value, [mixed $type = null])
-
mixed
$parameter: Name the parameter, either integer or string.
-
mixed
$value: Scalar value to bind to the parameter.
-
mixed
$type: OPTIONAL Datatype of the parameter.
Implementation of:
- Zend_Db_Statement_Interface::bindValue()
- Binds a value to a parameter.
Redefined in descendants as:
Executes a prepared statement.
bool
execute
([ $params = null])
-
array
$params: OPTIONAL Values to bind to parameter placeholders.
Implementation of:
- Zend_Db_Statement_Interface::execute()
- Executes a prepared statement.
Returns an array containing all of the result set rows.
array
fetchAll
([int $style = null], [int $col = null])
-
int
$style: OPTIONAL Fetch mode.
-
int
$col: OPTIONAL Column number, if fetch mode is by column.
Implementation of:
- Zend_Db_Statement_Interface::fetchAll()
- Returns an array containing all of the result set rows.
Redefined in descendants as:
Returns a single column from the next row of a result set.
string
fetchColumn
([int $col = 0])
-
int
$col: OPTIONAL Position of the column to fetch.
Implementation of:
- Zend_Db_Statement_Interface::fetchColumn()
- Returns a single column from the next row of a result set.
Redefined in descendants as:
Fetches the next row and returns it as an object.
mixed
fetchObject
([string $class = 'stdClass'], [ $config = array()])
-
string
$class: OPTIONAL Name of the class to create.
-
array
$config: OPTIONAL Constructor arguments for the class.
Implementation of:
- Zend_Db_Statement_Interface::fetchObject()
- Fetches the next row and returns it as an object.
Redefined in descendants as:
Gets the Zend_Db_Adapter_Abstract for this particular Zend_Db_Statement object.
Retrieve a statement attribute.
mixed
getAttribute
(string $key)
-
string
$key: Attribute name.
Implementation of:
- Zend_Db_Statement_Interface::getAttribute()
- Retrieve a statement attribute.
Redefined in descendants as:
Gets the resource or object setup by the
_parse
unknown_type
getDriverStatement
()
Set a statement attribute.
bool
setAttribute
(string $key, mixed $val)
-
string
$key: Attribute name.
-
mixed
$val: Attribute value.
Implementation of:
- Zend_Db_Statement_Interface::setAttribute()
- Set a statement attribute.
Redefined in descendants as:
Set the default fetch mode for this statement.
bool
setFetchMode
(int $mode)
-
int
$mode: The fetch mode.
Implementation of:
- Zend_Db_Statement_Interface::setFetchMode()
- Set the default fetch mode for this statement.
Redefined in descendants as:
Helper function to map retrieved row to bound column variables
bool
_fetchBound
(array $row)
void
_parseParameters
(string $sql)
Internal method called by abstract statment constructor to setup the driver level statement
void
_prepare
( $sql)
Redefined in descendants as:
Remove parts of a SQL string that contain quoted strings of values or identifiers.
string
_stripQuoted
(string $sql)