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 CTypedList

CTypedList represents a list whose items are of the certain type.

CTypedList extends CList by making sure that the elements to be added to the list is of certain class type.

CComponent
Extended by CList implements IteratorAggregate, ArrayAccess, Countable
Extended by CTypedList
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/CTypedList.php
Methods summary
public
# __construct( string $type )

Constructor.

Constructor.

Parameters

$type
string
$type class type

Throws

CException
If data is not null and neither an array nor an iterator.

Overrides

CList::__construct()
public
# insertAt( integer $index, mixed $item )

Inserts an item at the specified position. This method overrides the parent implementation by checking the item to be inserted is of certain type.

Inserts an item at the specified position. This method overrides the parent implementation by checking the item to be inserted is of certain type.

Parameters

$index
integer
$index the specified position.
$item
mixed
$item new item

Throws

CException
If the index specified exceeds the bound, the list is read-only or the element is not of the expected type.

Overrides

CList::insertAt()
Methods inherited from CList
add(), clear(), contains(), copyFrom(), count(), getCount(), getIterator(), getReadOnly(), indexOf(), itemAt(), mergeWith(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), remove(), removeAt(), setReadOnly(), toArray()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Magic properties inherited from CList
$count, $iterator, $readOnly
API documentation generated by ApiGen 2.8.0