Public Member Functions | Protected Attributes

Zend_Db_Statement_Db2 Class Reference

Inheritance diagram for Zend_Db_Statement_Db2:
Zend_Db_Statement Zend_Db_Statement_Interface

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

Detailed Description

Definition at line 36 of file Db2.php.


Member Function Documentation

_bindParam ( parameter,
&$  variable,
type = null,
length = null,
options = null 
)

Binds a parameter to the specified variable name.

Parameters:
mixed$parameterName the parameter, either integer or string.
mixed$variableReference to PHP variable containing the value.
mixed$typeOPTIONAL Datatype of SQL parameter.
mixed$lengthOPTIONAL Length of SQL parameter.
mixed$optionsOPTIONAL Other options.
Returns:
bool
Exceptions:
Zend_Db_Statement_Db2_Exception

See also:
Zend_Db_Statement_Db2_Exception

Definition at line 87 of file Db2.php.

_execute ( array $  params = null )

Executes a prepared statement.

Parameters:
array$paramsOPTIONAL Values to bind to parameter placeholders.
Returns:
bool
Exceptions:
Zend_Db_Statement_Db2_Exception

See also:
Zend_Db_Statement_Db2_Exception

Definition at line 194 of file Db2.php.

_prepare ( sql )

Prepare a statement handle.

Parameters:
string$sql
Returns:
void
Exceptions:
Zend_Db_Statement_Db2_Exception

See also:
Zend_Db_Statement_Db2_Exception

Reimplemented from Zend_Db_Statement.

Definition at line 56 of file Db2.php.

closeCursor (  )

Closes the cursor, allowing the statement to be executed again.

Returns:
bool

Implements Zend_Db_Statement_Interface.

Definition at line 118 of file Db2.php.

columnCount (  )

Returns the number of columns in the result set. Returns null if the statement has no result set metadata.

Returns:
int The number of columns.

Implements Zend_Db_Statement_Interface.

Definition at line 135 of file Db2.php.

errorCode (  )

Retrieves the error code, if any, associated with the last operation on the statement handle.

Returns:
string error code.

Implements Zend_Db_Statement_Interface.

Definition at line 149 of file Db2.php.

errorInfo (  )

Retrieves an array of error information, if any, associated with the last operation on the statement handle.

Returns:
array

Implements Zend_Db_Statement_Interface.

Definition at line 169 of file Db2.php.

fetch ( style = null,
cursor = null,
offset = null 
)

Fetches a row from the result set.

Parameters:
int$styleOPTIONAL Fetch mode for this fetch operation.
int$cursorOPTIONAL Absolute, relative, or other.
int$offsetOPTIONAL Number for absolute or relative cursors.
Returns:
mixed Array, object, or scalar depending on fetch mode.
Exceptions:
Zend_Db_Statement_Db2_Exception

See also:
Zend_Db_Statement_Db2_Exception

Implements Zend_Db_Statement_Interface.

Definition at line 242 of file Db2.php.

fetchAll ( style = null,
col = null 
)

Returns an array containing all of the result set rows.

Parameters:
int$styleOPTIONAL Fetch mode.
int$colOPTIONAL Column number, if fetch mode is by column.
Returns:
array Collection of rows, each in a format by the fetch mode.

Behaves like parent, but if limit() is used, the final result removes the extra column 'zend_db_rownum'

Reimplemented from Zend_Db_Statement.

Definition at line 346 of file Db2.php.

fetchObject ( class = 'stdClass',
array $  config = array() 
)

Fetches the next row and returns it as an object.

Parameters:
string$classOPTIONAL Name of the class to create.
array$configOPTIONAL Constructor arguments for the class.
Returns:
mixed One object instance of the specified class.

Reimplemented from Zend_Db_Statement.

Definition at line 290 of file Db2.php.

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.

Returns:
bool
Exceptions:
Zend_Db_Statement_Db2_Exception

See also:
Zend_Db_Statement_Db2_Exception

Implements Zend_Db_Statement_Interface.

Definition at line 304 of file Db2.php.

rowCount (  )

Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.

Returns:
int The number of rows affected.

Implements Zend_Db_Statement_Interface.

Definition at line 320 of file Db2.php.


Field Documentation

$_keys [protected]

Column names.

Definition at line 42 of file Db2.php.

$_values [protected]

Fetched result values.

Definition at line 47 of file Db2.php.


The documentation for this class was generated from the following file: