Class CFormElementCollection
CFormElementCollection implements the collection for storing form elements.
Because CFormElementCollection extends from CMap, it can be used like
an associative array. For example,
$element=$collection['username'];
$collection['username']=array('type'=>'text', 'maxlength'=>128);
$collection['password']=new CFormInputElement(array('type'=>'password'),$form);
$collection[]='some string';
CFormElementCollection can store three types of value: a configuration array,
a CFormElement object, or a string, as shown in the above example.
Internally, these values will be converted to CFormElement objects.
- CComponent
 - 
			
			CMap
			
			 implements 
				IteratorAggregate, 
			
				ArrayAccess, 
			
				Countable
			
			
		 - 
			
CFormElementCollection			
			
			
		 
		
		
		
		Package: system\web\form
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/web/form/CFormElementCollection.php
	
	Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/web/form/CFormElementCollection.php
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		
		#
		 add( mixed $key, mixed $value )
		Adds an item to the collection. This method overrides the parent
implementation to ensure only configuration arrays, strings, or   | 
	
			 public 
			mixed
			
			
		 | 
		
			clear(), 
			contains(), 
			copyFrom(), 
			count(), 
			getCount(), 
			getIterator(), 
			getKeys(), 
			getReadOnly(), 
			itemAt(), 
			mergeArray(), 
			mergeWith(), 
			offsetExists(), 
			offsetGet(), 
			offsetSet(), 
			offsetUnset(), 
			setReadOnly(), 
			toArray()
		 | 
	
			$count, 
			$iterator, 
			$keys, 
			$readOnly
		 |