Class Zend_Db_Statement_Mysqli

Description

Extends for Mysqli

  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Db/Statement/Mysqli.php (line 40)

Zend_Db_Statement
   |
   --Zend_Db_Statement_Mysqli
Variable Summary
 array $_keys
 mysqli_stmt $_stmt
 array $_values
Method Summary
 bool closeCursor ()
 int columnCount ()
 string errorCode ()
 array errorInfo ()
 bool execute ([ $params = array()])
 mixed fetch ([int $style = null], [int $cursor = null], [int $offset = null])
 bool nextRowset ()
 int rowCount ()
 void _prepSql (string $sql)
Variables
array $_keys (line 55)

Column names.

  • access: protected
mysqli_stmt $_stmt (line 48)

The mysqli_stmt object.

  • access: protected
array $_values (line 62)

Fetched result values.

  • access: protected

Inherited Variables

Inherited from Zend_Db_Statement

Zend_Db_Statement::$_adapter
Zend_Db_Statement::$_attribute
Zend_Db_Statement::$_bindColumn
Zend_Db_Statement::$_bindParam
Zend_Db_Statement::$_fetchMode
Zend_Db_Statement::$_sqlParam
Zend_Db_Statement::$_sqlSplit
Methods
closeCursor (line 92)

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

  • access: public
bool closeCursor ()
columnCount (line 107)

Returns the number of columns in the result set.

Returns null if the statement has no result set metadata.

  • return: The number of columns.
  • access: public
int columnCount ()
errorCode (line 121)

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

  • return: error code.
  • access: public
string errorCode ()
errorInfo (line 135)

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

  • access: public
array errorInfo ()
execute (line 154)

Executes a prepared statement.

  • throws: Zend_Db_Statement_Mysqli_Exception
  • access: public
bool execute ([ $params = array()])
  • array $params: OPTIONAL Values to bind to parameter placeholders.
fetch (line 215)

Fetches a row from the result set.

  • return: Array, object, or scalar depending on fetch mode.
  • throws: Zend_Db_Statement_Mysqli_Exception
  • access: public
mixed fetch ([int $style = null], [int $cursor = null], [int $offset = null])
  • 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.
nextRowset (line 288)

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.

  • throws: Zend_Db_Statement_Mysqli_Exception
  • access: public
bool nextRowset ()
rowCount (line 304)

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

  • return: The number of rows affected.
  • access: public
int rowCount ()
_prepSql (line 69)
  • throws: Zend_Db_Statement_Mysqli_Exception
  • access: public
void _prepSql (string $sql)
  • string $sql

Redefinition of:
Zend_Db_Statement::_prepSql()
Splits SQL into text and params, sets up $this->_bindParam for replacements.

Inherited Methods

Inherited From Zend_Db_Statement

 Zend_Db_Statement::__construct()
 Zend_Db_Statement::bindColumn()
 Zend_Db_Statement::bindParam()
 Zend_Db_Statement::bindValue()
 Zend_Db_Statement::fetchAll()
 Zend_Db_Statement::fetchColumn()
 Zend_Db_Statement::fetchObject()
 Zend_Db_Statement::getAttribute()
 Zend_Db_Statement::setAttribute()
 Zend_Db_Statement::setFetchMode()
 Zend_Db_Statement::_joinSql()
 Zend_Db_Statement::_normalizeBindParam()
 Zend_Db_Statement::_prepSql()

Documentation generated on Sun, 27 May 2007 23:26:01 -0700 by phpDocumentor 1.3.2