## Interface Zend_Db_Statement_Interface

Description

Emulates a PDOStatement for native database adapters.

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

Located in /Zend/Db/Statement/Interface.php (line 32)

Method Summary
void bindColumn ( $column, &$param, [ $type = null])
void bindParam ( $parameter, &$variable, [ $type = null], [ $length = null], [ $options = null])
void bindValue ( $parameter, $value, [ $type = null])
void closeCursor ()
void columnCount ()
void errorCode ()
void errorInfo ()
void execute ([ $params = null])
void fetch ([ $style = null], [ $cursor = null], [ $offset = null])
void fetchAll ([ $style = null], [ $col = null])
void fetchColumn ([ $col = 0])
void fetchObject ([ $class = 'stdClass'], [ $config = null])
void getAttribute ( $key)
void nextRowset ()
void rowCount ()
void setAttribute ( $key, $val)
void setFetchMode ( $mode)
Methods
bindColumn (line 37)

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

- access: public

void bindColumn ( $column, &$param, [ $type = null])

- $column
- &$param
- $type

bindParam (line 42)

binds a PHP variable to a parameter in the prepared statement

- access: public

void bindParam ( $parameter, &$variable, [ $type = null], [ $length = null], [ $options = null])

- $parameter
- &$variable
- $type
- $length
- $options

bindValue (line 48)

binds a value to a parameter in the prepared statement

- access: public

void bindValue ( $parameter, $value, [ $type = null])

- $parameter
- $value
- $type

closeCursor (line 53)

closes the cursor, allowing the statement to be executed again

- access: public

void closeCursor ()
columnCount (line 58)

returns the number of columns in the result set

- access: public

void columnCount ()
errorCode (line 63)

retrieves an error code, if any, from the statement

- access: public

void errorCode ()
errorInfo (line 68)

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

- access: public

void errorInfo ()
execute (line 73)

executes a prepared statement

- access: public

void execute ([ $params = null])

- $params

fetch (line 78)

fetches a row from a result set

- access: public

void fetch ([ $style = null], [ $cursor = null], [ $offset = null])

- $style
- $cursor
- $offset

fetchAll (line 83)

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

- access: public

void fetchAll ([ $style = null], [ $col = null])

- $style
- $col

fetchColumn (line 88)

returns the data from a single column in a result set

- access: public

void fetchColumn ( $col)

- $col

fetchObject (line 93)

fetches the next row and returns it as an object

- access: public

void fetchObject ([ $class = 'stdClass'], [ $config = null])

- $class
- $config

getAttribute (line 98)

retrieves a Zend_Db_Statement attribute

- access: public

void getAttribute ( $key)

- $key

nextRowset (line 103)

retrieves the next rowset (result set)

- access: public

void nextRowset ()
rowCount (line 108)

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

- access: public

void rowCount ()
setAttribute (line 113)

sets a Zend_Db_Statement attribute

- access: public

void setAttribute ( $key, $val)

- $key
- $val

setFetchMode (line 118)

sets the fetch mode for a Zend_Db_Statement

- access: public

void setFetchMode ( $mode)

- $mode

Documentation generated on Tue, 11 Jul 2006 12:17:37 -0500 by phpDocumentor 1.3.0RC6