Public Member Functions | Protected Member Functions | Protected Attributes

Zend_Db_Statement_Mysqli Class Reference

Inheritance diagram for Zend_Db_Statement_Mysqli:
Zend_Db_Statement Zend_Db_Statement_Interface

Public Member Functions

 _prepare ($sql)
 close ()
 closeCursor ()
 columnCount ()
 errorCode ()
 errorInfo ()
 _execute (array $params=null)
 fetch ($style=null, $cursor=null, $offset=null)
 nextRowset ()
 rowCount ()

Protected Member Functions

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

Protected Attributes

 $_keys
 $_values
 $_meta = null

Detailed Description

Definition at line 39 of file Mysqli.php.


Member Function Documentation

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

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_Mysqli_Exception

Definition at line 92 of file Mysqli.php.

_execute ( array $  params = null )

Executes a prepared statement.

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

See also:
Zend_Db_Statement_Mysqli_Exception
Zend_Db_Statement_Mysqli_Exception

Definition at line 183 of file Mysqli.php.

_prepare ( sql )
Parameters:
string$sql
Returns:
void
Exceptions:
Zend_Db_Statement_Mysqli_Exception

See also:
Zend_Db_Statement_Mysqli_Exception

Reimplemented from Zend_Db_Statement.

Definition at line 66 of file Mysqli.php.

close (  )

Closes the cursor and the statement.

Returns:
bool

Definition at line 102 of file Mysqli.php.

closeCursor (  )

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

Returns:
bool

Implements Zend_Db_Statement_Interface.

Definition at line 117 of file Mysqli.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 136 of file Mysqli.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 150 of file Mysqli.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 164 of file Mysqli.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_Mysqli_Exception

See also:
Zend_Db_Statement_Mysqli_Exception

Implements Zend_Db_Statement_Interface.

Definition at line 270 of file Mysqli.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_Mysqli_Exception

See also:
Zend_Db_Statement_Mysqli_Exception

Implements Zend_Db_Statement_Interface.

Definition at line 337 of file Mysqli.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 353 of file Mysqli.php.


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