public function getField($name){
		foreach($this->fields as $field){
			if($field->getName()==$name)
				return $field;
		}

		throw new FieldNotFoundException($name);
	}
public function getField($name){
		foreach($this->fields as $field){
			if($field->getName()==$name)
				return $field;
		}

		throw new FieldNotFoundException($name);
	}
public function getField ( $ name ) { foreach ( $ this -> fields as $ field ) { if ( $ field -> getName ( ) == $ name ) return $ field ; } throw new FieldNotFoundException ( $ name ) ; }
Get field object

@param string $name - field name (html name tag)
@return FormField
@throws FieldNotFoundException
Get field object