framework/web/form/CForm.php
public function getModels()
	{
		$models=array();
		if($this->_model!==null)
			$models[]=$this->_model;
		foreach($this->getElements() as $element)
		{
			if($element instanceof self)
				$models=array_merge($models,$element->getModels());
		}
		return $models;
	}
public function getModels()
	{
		$models=array();
		if($this->_model!==null)
			$models[]=$this->_model;
		foreach($this->getElements() as $element)
		{
			if($element instanceof self)
				$models=array_merge($models,$element->getModels());
		}
		return $models;
	}
public function getModels ( ) { $ models = array ( ) ; if ( $ this -> _model !== null ) $ models [ ] = $ this -> _model ; foreach ( $ this -> getElements ( ) as $ element ) { if ( $ element instanceof self ) $ models = array_merge ( $ models , $ element -> getModels ( ) ) ; } return $ models ; }
Returns all models that are associated with this form or its sub-forms.
@return array the models that are associated with this form or its sub-forms.
Returns all models that are associated with this form or its sub - forms .