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 CMapIterator

CMapIterator implements an iterator for CMap.

It allows CMap to return a new iterator for traversing the items in the map.

CMapIterator 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/CMapIterator.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 mixed
# key( )

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

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

Returns

mixed
the key of the current array element

Implementation of

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

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

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

Returns

mixed
the current array element

Implementation of

Iterator::current()
public
# next( )

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

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

Implementation of

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

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

Returns whether there is an element 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