Public Member Functions | |
_prepare ($sql) | |
_bindParam ($parameter, &$variable, $type=null, $length=null, $options=null) | |
closeCursor () | |
columnCount () | |
errorCode () | |
errorInfo () | |
_execute (array $params=null) | |
fetch ($style=null, $cursor=null, $offset=null) | |
fetchObject ($class= 'stdClass', array $config=array()) | |
nextRowset () | |
rowCount () | |
fetchAll ($style=null, $col=null) | |
Protected Attributes | |
$_keys | |
$_values |
Definition at line 36 of file Db2.php.
_bindParam | ( | $ | parameter, |
&$ | variable, | ||
$ | type = null , |
||
$ | length = null , |
||
$ | options = null |
||
) |
Binds a parameter to the specified variable name.
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. |
Zend_Db_Statement_Db2_Exception |
_execute | ( | array $ | params = null ) |
Executes a prepared statement.
array | $params | OPTIONAL Values to bind to parameter placeholders. |
Zend_Db_Statement_Db2_Exception |
_prepare | ( | $ | sql ) |
Prepare a statement handle.
string | $sql |
Zend_Db_Statement_Db2_Exception |
Reimplemented from Zend_Db_Statement.
closeCursor | ( | ) |
Closes the cursor, allowing the statement to be executed again.
Implements Zend_Db_Statement_Interface.
columnCount | ( | ) |
Returns the number of columns in the result set. Returns null if the statement has no result set metadata.
Implements Zend_Db_Statement_Interface.
errorCode | ( | ) |
Retrieves the error code, if any, associated with the last operation on the statement handle.
Implements Zend_Db_Statement_Interface.
errorInfo | ( | ) |
Retrieves an array of error information, if any, associated with the last operation on the statement handle.
Implements Zend_Db_Statement_Interface.
fetch | ( | $ | style = null , |
$ | cursor = null , |
||
$ | offset = null |
||
) |
Fetches a row from the result set.
int | $style | OPTIONAL Fetch mode for this fetch operation. |
int | $cursor | OPTIONAL Absolute, relative, or other. |
int | $offset | OPTIONAL Number for absolute or relative cursors. |
Zend_Db_Statement_Db2_Exception |
Implements Zend_Db_Statement_Interface.
fetchAll | ( | $ | style = null , |
$ | col = null |
||
) |
Returns an array containing all of the result set rows.
int | $style | OPTIONAL Fetch mode. |
int | $col | OPTIONAL Column number, if fetch mode is by column. |
Behaves like parent, but if limit() is used, the final result removes the extra column 'zend_db_rownum'
Reimplemented from Zend_Db_Statement.
fetchObject | ( | $ | class = 'stdClass' , |
array $ | config = array() |
||
) |
Fetches the next row and returns it as an object.
string | $class | OPTIONAL Name of the class to create. |
array | $config | OPTIONAL Constructor arguments for the class. |
Reimplemented from Zend_Db_Statement.
nextRowset | ( | ) |
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.
Zend_Db_Statement_Db2_Exception |
Implements Zend_Db_Statement_Interface.
rowCount | ( | ) |
Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
Implements Zend_Db_Statement_Interface.