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.
Testing Database Statement that acts as a stack to SQL resultsets.
int $_columnCount = '0'
Detailsarray $_fetchStack = 'array'
DetailsZend_Db_Profiler_Query $_queryProfile = 'null'
Detailsint $_rowCount = '0'
Details_createRowCountStatement(
int $affectedRows
)
:
Zend_Test_DbStatementCreate a Row Count Statement
Detailsappend(
array $row
)
:
Append a new row to the fetch stack.
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.
DetailscloseCursor(
)
:
boolCloses the cursor, allowing the statement to be executed again.
DetailscolumnCount(
)
:
intReturns the number of columns in the result set.
Returns null if the statement has no result set metadata.
DetailscreateDeleteStatement(
int $affectedRows
=
0
)
:
Zend_Test_DbStatementCreate an Delete Statement
DetailscreateInsertStatement(
int $affectedRows
=
0
)
:
Zend_Test_DbStatementCreate an Insert Statement
DetailscreateSelectStatement(
array $rows
=
array
)
:
Zend_Test_DbStatementCreate a Select statement which returns the given array of rows.
DetailscreateUpdateStatement(
int $affectedRows
=
0
)
:
Zend_Test_DbStatementCreate an Update Statement
DetailserrorCode(
)
:
stringRetrieves the error code, if any, associated with the last operation on the statement handle.
DetailserrorInfo(
)
:
arrayRetrieves an array of error information, if any, associated with the last operation on the statement handle.
Detailsexecute(
array $params
=
array
)
:
boolExecutes a prepared statement.
Detailsfetch(
int $style
=
null, int $cursor
=
null, int $offset
=
null
)
:
mixedFetches a row from the result set.
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.
DetailsgetAttribute(
string $key
)
:
mixedRetrieve a statement attribute.
DetailsnextRowset(
)
:
boolRetrieves the next rowset (result set) for a SQL statement that has multiple result sets. An example is a stored procedure that returns the results of multiple queries.
DetailsrowCount(
)
:
intReturns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
DetailssetAttribute(
string $key, mixed $val
)
:
boolSet a statement attribute.
DetailssetFetchMode(
int $mode
)
:
boolSet the default fetch mode for this statement.
DetailssetQueryProfile(
Zend_Db_Profiler_Query $qp
)
:
DetailssetRowCount(
int $rowCount
)
:
Details