Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • Engine
  • ResultSet

Interfaces

  • IEngine
  • IResultSet
  • Overview
  • Namespace
  • Class
  • Tree

Class ResultSet

Implementation of IResultSet for PDO results

Alchemy\engine\ResultSet implements Alchemy\engine\IResultSet
Namespace: Alchemy\engine
Located at alchemy/engine/ResultSet.php
Methods summary
public
# __construct( PDO $connector, PDOStatement $statement )

Object constructor.

Object constructor.

Parameters

$connector
PDO
$connector
$statement
PDOStatement
$statement
public
# current( )

See Alchemy\engine\Iterator::current()

See Alchemy\engine\Iterator::current()

Implementation of

Iterator::current()
protected
# fetch( )

Fetch the next result from the cursor

Fetch the next result from the cursor

public integer
# lastInsertID( )

Return the last inserted ID form the database

Return the last inserted ID form the database

Returns

integer

Implementation of

Alchemy\engine\IResultSet::lastInsertID()
public
# key( )

See Alchemy\engine\Iterator::key()

See Alchemy\engine\Iterator::key()

Implementation of

Iterator::key()
public
# next( )

See Alchemy\engine\Iterator::next()

See Alchemy\engine\Iterator::next()

Implementation of

Iterator::next()
public
# rewind( )

See Alchemy\engine\Iterator::rewind()

See Alchemy\engine\Iterator::rewind()

Implementation of

Iterator::rewind()
public integer
# rowCount( )

Return the row count of the result set

Return the row count of the result set

Returns

integer

Implementation of

Alchemy\engine\IResultSet::rowCount()
public
# valid( )

See Alchemy\engine\Iterator::valid()

See Alchemy\engine\Iterator::valid()

Implementation of

Iterator::valid()
Properties summary
protected mixed $connector
#
protected mixed $statement
#
protected integer $index 0
#
protected mixed $current
#
API documentation generated by ApiGen 2.8.0