Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CAttributeCollection
  • CConfiguration
  • CList
  • CListIterator
  • CMap
  • CMapIterator
  • CQueue
  • CQueueIterator
  • CStack
  • CStackIterator
  • CTypedList
  • CTypedMap
  • Overview
  • Package
  • Class
  • Tree

Class CListIterator

CListIterator implements an iterator for CList.

It allows CList to return a new iterator for traversing the items in the list.

CListIterator implements Iterator
Package: system\collections
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/collections/CListIterator.php
Methods summary
public
# __construct( array & $data )

Constructor.

Constructor.

Parameters

$data
array
$data the data to be iterated through
public
# rewind( )

Rewinds internal array pointer. This method is required by the interface Iterator.

Rewinds internal array pointer. This method is required by the interface Iterator.

Implementation of

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

Returns the key of the current array item. This method is required by the interface Iterator.

Returns the key of the current array item. This method is required by the interface Iterator.

Returns

integer
the key of the current array item

Implementation of

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

Returns the current array item. This method is required by the interface Iterator.

Returns the current array item. This method is required by the interface Iterator.

Returns

mixed
the current array item

Implementation of

Iterator::current()
public
# next( )

Moves the internal pointer to the next array item. This method is required by the interface Iterator.

Moves the internal pointer to the next array item. This method is required by the interface Iterator.

Implementation of

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

Returns whether there is an item at current position. This method is required by the interface Iterator.

Returns whether there is an item at current position. This method is required by the interface Iterator.

Returns

boolean

Implementation of

Iterator::valid()
API documentation generated by ApiGen 2.8.0