Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

The DB_Recordset_Column class

DB_Recordset
   |
   --DB_Recordset_Column

• Introduction

Database column recordset.

• Class synopsis

DB_Recordset_Column extends DB_Recordset {
/* Inherited Properties */
// Contains internal pointer position
// Contains current record
// MySQL query result resource
// Contains result type
protected DB_Recordset::$resultType = 0;
/* Methods */
// Constructor.
public __construct ( resource $resource ) returns DB_Recordset_Column;
// Iterator::current() implementation.
public current ( ) returns mixed;
// Converts record to a string.
public __toString ( ) returns string;
/* Inherited Methods */
// Constructor.
public DB_Recordset::__construct ( resource $resource, [ int $resultType = MYSQL_ASSOC ] ) returns DB_Recordset;
// Countable::count() implementation.
public DB_Recordset::count ( ) returns int;
// Returns the current element.
public DB_Recordset::current ( ) returns array;
// Returns the key of the current element.
public DB_Recordset::key ( ) returns mixed;
// Move forward to next element.
public DB_Recordset::next ( ) returns void;
// Rewinds the Iterator to the first element.
public DB_Recordset::rewind ( ) returns void;
// SeekableIterator::seek() implementation.
public DB_Recordset::seek ( int $position ) returns bool;
// Checks if current position is valid.
public DB_Recordset::valid ( ) returns bool;
// Cloninig.
public DB_Recordset::__clone ( ) returns void;
// Destructor.
public DB_Recordset::__destruct ( ) returns void;
}

• Class Methods

// Constructor.
public __construct ( resource $resource ) returns DB_Recordset_Column;
  • resource $resource
    MySQL query result resource
// Iterator::current() implementation.
public current ( ) returns mixed;
// Converts record to a string.
public __toString ( ) returns string;
Tags:
see AMI_DB::fetchCol() example