original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Add fully configured form field instance.
  @param \MvcCore\Ext\Forms\Field|\MvcCore\Ext\Forms\IField $field
  @return \MvcCore\Ext\Form|\MvcCore\Ext\Forms\IForm
docstring_tokens: Add fully configured form field instance .