Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • waDbAdapter
  • waDbCacheIterator
  • waDbConnector
  • waDbIbaseAdapter
  • waDbMySQLAdapter
  • waDbMysqliAdapter
  • waDbPostgresAdapter
  • waDbQuery
  • waDbQueryAnalyzer
  • waDbRecord
  • waDbResult
  • waDbResultDelete
  • waDbResultIbaseIterator
  • waDbResultInsert
  • waDbResultIterator
  • waDbResultReplace
  • waDbResultSelect
  • waDbResultUpdate
  • waDbSqlite3Adapter
  • waDbStatement
  • waModel
  • waNestedSetModel

Exceptions

  • waDbException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class waDbResultIterator

This file is part of Webasyst framework.

Licensed under the terms of the GNU Lesser General Public License (LGPL). http://www.webasyst.com/framework/license/

waDbResultIterator implements Iterator

Direct known subclasses

waDbResultIbaseIterator
Package: wa-system\database
Copyright: 2011 Webasyst LLC
Author: Webasyst LLC
Link: http://www.webasyst.com/
Located at wa-system/database/waDbResultIterator.class.php
Methods summary
public
# __construct( resource $result, waDbAdapter $adapter )

Parameters

$result
resource
$result
$adapter
waDbAdapter
$adapter
public
# __destruct( )
public mixed
# current( )

Returns current element

Returns current element

Returns

mixed

Implementation of

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

Returns current key

Returns current key

Returns

integer

Implementation of

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

Shift key to the next element

Shift key to the next element

Returns

array

Implementation of

Iterator::next()
public mixed|null
# rewind( )

Reset key

Reset key

Returns

mixed|null

Implementation of

Iterator::rewind()
public boolean
# valid( )

Check on valid result Example:

while($result->valid()){
     print_r($result->next());
}

Check on valid result Example:

while($result->valid()){
     print_r($result->next());
}

Returns

boolean

Implementation of

Iterator::valid()
public boolean|
# seek( integer $offset = 0 )

Seek on result

Seek on result

Parameters

$offset
integer
$offset

Returns

boolean|
public integer
# count( )

Returns result of the count

Returns result of the count

Returns

integer
public
# fetch( integer $mode = null )

Parameters

$mode
integer
$mode
public
# fetchArray( )
public
# fetchAssoc( )
public array
# export( string|null $key = null, boolean|integer $normalize = false )

Export data

Export data

Parameters

$key
string|null
$key
$normalize
boolean|integer
$normalize

Returns

array
public boolean
# free( )

Free resource

Free resource

Returns

boolean
Properties summary
protected mixed $current null
#

Current element

Current element

protected integer $key 0
#

Current key

Current key

private resource $result
#
private mixed $count null
#
private waDbAdapter $adapter
#
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0