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'
array $_fetchStack = 'array'
Zend_Db_Profiler_Query $_queryProfile = 'null'
int $_rowCount = '0'
_createRowCountStatement(
int $affectedRows
)
:
Zend_Test_DbStatement
Create a Row Count Statement
append(
array $row
)
:
Append a new row to the fetch stack.
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.
closeCursor(
)
:
bool
Closes the cursor, allowing the statement to be executed again.
columnCount(
)
:
int
Returns the number of columns in the result set.
Returns null if the statement has no result set metadata.
createDeleteStatement(
int $affectedRows
=
0
)
:
Zend_Test_DbStatement
Create an Delete Statement
createInsertStatement(
int $affectedRows
=
0
)
:
Zend_Test_DbStatement
Create an Insert Statement
createSelectStatement(
array $rows
=
array
)
:
Zend_Test_DbStatement
Create a Select statement which returns the given array of rows.
createUpdateStatement(
int $affectedRows
=
0
)
:
Zend_Test_DbStatement
Create an Update Statement
errorCode(
)
:
string
Retrieves the error code, if any, associated with the last operation on the statement handle.
errorInfo(
)
:
array
Retrieves an array of error information, if any, associated with the last operation on the statement handle.
execute(
array $params
=
array
)
:
bool
Executes a prepared statement.
fetch(
int $style
=
null, int $cursor
=
null, int $offset
=
null
)
:
mixed
Fetches a row from the result set.
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.
getAttribute(
string $key
)
:
mixed
Retrieve a statement attribute.
nextRowset(
)
:
bool
Retrieves 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.
rowCount(
)
:
int
Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
setAttribute(
string $key, mixed $val
)
:
bool
Set a statement attribute.
setFetchMode(
int $mode
)
:
bool
Set the default fetch mode for this statement.
setQueryProfile(
Zend_Db_Profiler_Query $qp
)
:
setRowCount(
int $rowCount
)
: