Abstract Class Zend_Db_Statement

Description

Implements interfaces:

Abstract class to emulate a PDOStatement for native database adapters.

Located in /library/Zend/Db/Statement.php (line 37)


	
			
Direct descendents
Class Description
 class Zend_Db_Statement_Mysqli Extends for Mysqli
 class Zend_Db_Statement_Oracle Extends for Oracle.
Variable Summary
Method Summary
 Zend_Db_Statement __construct (mixed $connection, mixed $sql)
 void bindColumn (mixed $column, mixed &$param, [mixed $type = null])
 void bindParam (mixed $parameter, mixed &$variable, [mixed $type = null], [mixed $length = null], [mixed $options = null])
 void bindValue (mixed $parameter, mixed $value, [mixed $type = null])
 void closeCursor ()
 void columnCount ()
 void errorCode ()
 void errorInfo ()
 void execute ([mixed $params = null])
 void fetch ([mixed $style = null], [mixed $cursor = null], [mixed $offset = null])
 void fetchAll ([mixed $style = null], [mixed $col = null])
 void fetchColumn (mixed $col)
 void fetchObject ([mixed $class = 'stdClass'], [mixed $config = null])
 void getAttribute (mixed $key)
 void nextRowset ()
 void rowCount ()
 void setAttribute (mixed $key, mixed $val)
 void setFetchMode (mixed $mode)
 void _joinSql ()
 void _prepSql (mixed $sql)
Variables
mixed $_attribute = array() (line 47)

Attributes.

  • access: protected
mixed $_bindColumn = array() (line 52)

Column result bindings.

  • access: protected
mixed $_bindParam = array() (line 57)

Query parameter bindings; covers bindParam() and bindValue().

  • access: protected
mixed $_fetchMode = Zend_Db::FETCH_ASSOC (line 42)

The current fetch mode.

  • access: protected
mixed $_sqlParam = array() (line 67)

Parameter placeholders in the SQL string by position in the split array.

  • access: protected
mixed $_sqlSplit = array() (line 62)

SQL string split into an array at placeholders.

  • access: protected
Methods
Constructor __construct (line 73)

Constructor.

  • access: public
Zend_Db_Statement __construct (mixed $connection, mixed $sql)
bindColumn (line 123)

binds a PHP variable to an output column in a result set

  • access: public
void bindColumn (mixed $column, mixed &$param, [mixed $type = null])
bindParam (line 132)

binds a PHP variable to a parameter in the prepared statement

  • access: public
void bindParam (mixed $parameter, mixed &$variable, [mixed $type = null], [mixed $length = null], [mixed $options = null])

Redefined in descendants as:
bindValue (line 271)

binds a value to a parameter in the prepared statement

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void bindValue (mixed $parameter, mixed $value, [mixed $type = null])
closeCursor (line 282)

closes the cursor, allowing the statement to be executed again

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void closeCursor ()

Redefined in descendants as:
columnCount (line 293)

returns the number of columns in the result set

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void columnCount ()

Redefined in descendants as:
errorCode (line 304)

retrieves an error code, if any, from the statement

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void errorCode ()

Redefined in descendants as:
errorInfo (line 315)

retrieves an array of error information, if any, from the statement

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void errorInfo ()

Redefined in descendants as:
execute (line 326)

executes a prepared statement

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void execute ([mixed $params = null])

Redefined in descendants as:
fetch (line 337)

fetches a row from a result set

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void fetch ([mixed $style = null], [mixed $cursor = null], [mixed $offset = null])

Redefined in descendants as:
fetchAll (line 161)

fetches an array containing all of the rows from a result set

  • access: public
void fetchAll ([mixed $style = null], [mixed $col = null])

Redefined in descendants as:
fetchColumn (line 180)

returns the data from a single column in a result set

  • access: public
void fetchColumn (mixed $col)

Redefined in descendants as:
fetchObject (line 194)

fetches the next row and returns it as an object

  • access: public
void fetchObject ([mixed $class = 'stdClass'], [mixed $config = null])

Redefined in descendants as:
getAttribute (line 208)

retrieves a Zend_Db_Statement attribute

  • access: public
void getAttribute (mixed $key)
nextRowset (line 249)

retrieves the next rowset (result set)

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void nextRowset ()
rowCount (line 260)

returns the number of rows that were affected by the execution of an SQL statement

  • access: public
  • todo: needs implementation or better exception message
  • todo: fix docblock for params & return types
void rowCount ()

Redefined in descendants as:
setAttribute (line 219)

sets a Zend_Db_Statement attribute

  • access: public
void setAttribute (mixed $key, mixed $val)
setFetchMode (line 228)

sets the fetch mode for a Zend_Db_Statement

  • access: public
void setFetchMode (mixed $mode)
_joinSql (line 109)

Joins SQL text and bound params into a string.

  • access: protected
void _joinSql ()
_prepSql (line 83)

Splits SQL into text and params, sets up $this->_bindParam for replacements.

  • access: protected
void _prepSql (mixed $sql)

Redefined in descendants as:

Documentation generated on Wed, 08 Mar 2006 04:54:57 -0800 by phpDocumentor 1.3.0RC4