Overview

Packages

  • Db
    • Adapter
    • Migration

Classes

  • Horde_Db_Adapter_Base
  • Horde_Db_Adapter_Base_Column
  • Horde_Db_Adapter_Base_ColumnDefinition
  • Horde_Db_Adapter_Base_Index
  • Horde_Db_Adapter_Base_Schema
  • Horde_Db_Adapter_Base_Table
  • Horde_Db_Adapter_Base_TableDefinition
  • Horde_Db_Adapter_Mysql
  • Horde_Db_Adapter_Mysql_Column
  • Horde_Db_Adapter_Mysql_Result
  • Horde_Db_Adapter_Mysql_Schema
  • Horde_Db_Adapter_Mysqli
  • Horde_Db_Adapter_Mysqli_Result
  • Horde_Db_Adapter_Pdo_Base
  • Horde_Db_Adapter_Pdo_Mysql
  • Horde_Db_Adapter_Pdo_Pgsql
  • Horde_Db_Adapter_Pdo_Sqlite
  • Horde_Db_Adapter_Postgresql_Column
  • Horde_Db_Adapter_Postgresql_Schema
  • Horde_Db_Adapter_SplitRead
  • Horde_Db_Adapter_Sqlite_Column
  • Horde_Db_Adapter_Sqlite_Schema

Interfaces

  • Horde_Db_Adapter
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Db_Adapter_Mysql_Result

Horde_Db_Adapter_Mysql_Result implements Iterator
Package: Db\Adapter
Category: Horde
License: http://www.horde.org/licenses/bsd
Author: Mike Naberezny mike@maintainable.com
Author: Derek DeVries derek@maintainable.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Db/Adapter/Mysql/Result.php
Methods summary
public
# __construct( Horde_Db_Adapter $adapter, string $sql, mixed $arg1 = null, string $arg2 = null )

Constructor

Constructor

Parameters

$adapter
$sql
$arg1
Either an array of bound parameters or a query name.
$arg2
If $arg1 contains bound parameters, the query name.
public
# __destruct( )

Destructor - release any resources.

Destructor - release any resources.

public
# rewind( )

Implementation of the rewind() method for iterator.

Implementation of the rewind() method for iterator.

Implementation of

Iterator::rewind()
public mixed
# current( )

Implementation of the current() method for iterator.

Implementation of the current() method for iterator.

Returns

mixed
The current row, or null if no rows.

Implementation of

Iterator::current()
public mixed
# key( )

Implementation of the key() method for iterator.

Implementation of the key() method for iterator.

Returns

mixed
The current row number (starts at 0), or NULL if no rows

Implementation of

Iterator::key()
public array|null
# next( )

Implementation of the next() method.

Implementation of the next() method.

Returns

array|null

The next row in the resultset or null if there are no more results.

Implementation of

Iterator::next()
public
# fetch( integer $fetchmode = Horde_Db::FETCH_ASSOC )

Returns the current row and advances the recordset one row.

Returns the current row and advances the recordset one row.

Parameters

$fetchmode
<p>The default fetch mode for this result. One of the Horde_Db::FETCH_* constants.</p>
public boolean
# valid( )

Implementation of the valid() method for iterator

Implementation of the valid() method for iterator

Returns

boolean
Whether the iteration is valid

Implementation of

Iterator::valid()
public
# setFetchMode( integer $fetchmode )

Sets the default fetch mode for this result.

Sets the default fetch mode for this result.

Parameters

$fetchmode
One of the Horde_Db::FETCH_* constants.
public integer
# columnCount( )

Returns the number of columns in the result set

Returns the number of columns in the result set

Returns

integer
Number of columns.
API documentation generated by ApiGen