public function & AddField (\MvcCore\Ext\Forms\IField $field) {
		/** @var $this \MvcCore\Ext\Forms\IForm */
		/** @var $field \MvcCore\Ext\Forms\Field */
		if ($this->dispatchState < 1) $this->Init();
		$fieldName = $field->GetName();
		$field->SetForm($this);
		$this->fields[$fieldName] = & $field;
		if ($field instanceof \MvcCore\Ext\Forms\Fields\ISubmit) {
			$this->submitFields[$fieldName] = & $field;
			$fieldCustomResultState = $field->GetCustomResultState();
			if ($fieldCustomResultState !== NULL)
				$this->customResultStates[$fieldName] = $fieldCustomResultState;
		}
		return $this;
	}
public function & AddField (\MvcCore\Ext\Forms\IField $field) {
		/** @var $this \MvcCore\Ext\Forms\IForm */
		/** @var $field \MvcCore\Ext\Forms\Field */
		if ($this->dispatchState < 1) $this->Init();
		$fieldName = $field->GetName();
		$field->SetForm($this);
		$this->fields[$fieldName] = & $field;
		if ($field instanceof \MvcCore\Ext\Forms\Fields\ISubmit) {
			$this->submitFields[$fieldName] = & $field;
			$fieldCustomResultState = $field->GetCustomResultState();
			if ($fieldCustomResultState !== NULL)
				$this->customResultStates[$fieldName] = $fieldCustomResultState;
		}
		return $this;
	}
public function & AddField ( \ MvcCore \ Ext \ Forms \ IField $ field ) { /** @var $this \MvcCore\Ext\Forms\IForm */ /** @var $field \MvcCore\Ext\Forms\Field */ if ( $ this -> dispatchState < 1 ) $ this -> Init ( ) ; $ fieldName = $ field -> GetName ( ) ; $ field -> SetForm ( $ this ) ; $ this -> fields [ $ fieldName ] = & $ field ; if ( $ field instanceof \ MvcCore \ Ext \ Forms \ Fields \ ISubmit ) { $ this -> submitFields [ $ fieldName ] = & $ field ; $ fieldCustomResultState = $ field -> GetCustomResultState ( ) ; if ( $ fieldCustomResultState !== NULL ) $ this -> customResultStates [ $ fieldName ] = $ fieldCustomResultState ; } return $ this ; }
Add fully configured form field instance.
@param \MvcCore\Ext\Forms\Field|\MvcCore\Ext\Forms\IField $field
@return \MvcCore\Ext\Form|\MvcCore\Ext\Forms\IForm
Add fully configured form field instance .