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'
Detailsarray $_attribute = 'array'Attributes.
Detailsarray $_bindColumn = 'array'Column result bindings.
Detailsarray $_bindParam = 'array'Query parameter bindings; covers bindParam() and bindValue().
Detailsinteger $_fetchMode = 'Zend_Db'The current fetch mode.
DetailsZend_Db_Profiler_Query $_queryId = 'null'
Detailsarray $_sqlParam = 'array'Parameter placeholders in the SQL string by position in the split array.
Detailsarray $_sqlSplit = 'array'SQL string split into an array at placeholders.
Detailsresource|object $_stmt = 'null'
Details__construct(
Zend_Db_Adapter_Abstract $adapter, mixed $sql
)
:
Constructor for a statement.
Details_fetchBound(
array $row
)
:
boolHelper function to map retrieved row to bound column variables
Details_parseParameters(
string $sql
)
:
void
Details_prepare(
$sql
)
:
voidInternal method called by abstract statment constructor to setup the driver level statement
Details_stripQuoted(
string $sql
)
:
stringRemove parts of a SQL string that contain quoted strings of values or identifiers.
DetailsbindColumn(
string $column, mixed $param, mixed $type
=
null
)
:
boolBind a column of the statement result set to a PHP variable.
DetailsbindParam(
mixed $parameter, mixed $variable, mixed $type
=
null, mixed $length
=
null, mixed $options
=
null
)
:
boolBinds a parameter to the specified variable name.
DetailsbindValue(
mixed $parameter, mixed $value, mixed $type
=
null
)
:
boolBinds a value to a parameter.
Detailsexecute(
array $params
=
null
)
:
boolExecutes a prepared statement.
DetailsfetchAll(
int $style
=
null, int $col
=
null
)
:
arrayReturns an array containing all of the result set rows.
DetailsfetchColumn(
int $col
=
0
)
:
stringReturns a single column from the next row of a result set.
DetailsfetchObject(
string $class
=
stdClass, array $config
=
array
)
:
mixedFetches the next row and returns it as an object.
DetailsgetAdapter(
)
:
Zend_Db_Adapter_AbstractGets the Zend_Db_Adapter_Abstract for this particular Zend_Db_Statement object.
DetailsgetAttribute(
string $key
)
:
mixedRetrieve a statement attribute.
DetailsgetDriverStatement(
)
:
unknown_typeGets the resource or object setup by the _parse
DetailssetAttribute(
string $key, mixed $val
)
:
boolSet a statement attribute.
DetailssetFetchMode(
int $mode
)
:
boolSet the default fetch mode for this statement.
Details