Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Abstract class to emulate a PDOStatement for native database adapters.
Zend_Db_Adapter_Abstract $_adapter = 'null'
array $_attribute = 'array'
Attributes.
array $_bindColumn = 'array'
Column result bindings.
array $_bindParam = 'array'
Query parameter bindings; covers bindParam() and bindValue().
integer $_fetchMode = 'Zend_Db'
The current fetch mode.
Zend_Db_Profiler_Query $_queryId = 'null'
array $_sqlParam = 'array'
Parameter placeholders in the SQL string by position in the split array.
array $_sqlSplit = 'array'
SQL string split into an array at placeholders.
resource|object $_stmt = 'null'
__construct(
Zend_Db_Adapter_Abstract $adapter, mixed $sql
)
:
Constructor for a statement.
_fetchBound(
array $row
)
:
bool
Helper function to map retrieved row to bound column variables
_parseParameters(
string $sql
)
:
void
_prepare(
$sql
)
:
void
Internal method called by abstract statment constructor to setup the driver level statement
_stripQuoted(
string $sql
)
:
string
Remove parts of a SQL string that contain quoted strings of values or identifiers.
bindColumn(
string $column, mixed $param, mixed $type
=
null
)
:
bool
Bind a column of the statement result set to a PHP variable.
bindParam(
mixed $parameter, mixed $variable, mixed $type
=
null, mixed $length
=
null, mixed $options
=
null
)
:
bool
Binds a parameter to the specified variable name.
bindValue(
mixed $parameter, mixed $value, mixed $type
=
null
)
:
bool
Binds a value to a parameter.
execute(
array $params
=
null
)
:
bool
Executes a prepared statement.
fetchAll(
int $style
=
null, int $col
=
null
)
:
array
Returns an array containing all of the result set rows.
fetchColumn(
int $col
=
0
)
:
string
Returns a single column from the next row of a result set.
fetchObject(
string $class
=
stdClass, array $config
=
array
)
:
mixed
Fetches the next row and returns it as an object.
getAdapter(
)
:
Zend_Db_Adapter_Abstract
Gets the Zend_Db_Adapter_Abstract for this particular Zend_Db_Statement object.
getAttribute(
string $key
)
:
mixed
Retrieve a statement attribute.
getDriverStatement(
)
:
unknown_type
Gets the resource or object setup by the _parse
setAttribute(
string $key, mixed $val
)
:
bool
Set a statement attribute.
setFetchMode(
int $mode
)
:
bool
Set the default fetch mode for this statement.