src/Net/Mail/Header/Section.php
public function setField( Net_Mail_Header_Field $field, $emptyBefore = TRUE )
	{
		$name	= strtolower( $field->getName() );
		if( $emptyBefore || !array_key_exists( $name, $this->fields ) )
			$this->fields[$name]	= array();
		$this->fields[$name][]	= $field;
	}
public function setField( Net_Mail_Header_Field $field, $emptyBefore = TRUE )
	{
		$name	= strtolower( $field->getName() );
		if( $emptyBefore || !array_key_exists( $name, $this->fields ) )
			$this->fields[$name]	= array();
		$this->fields[$name][]	= $field;
	}
public function setField ( Net_Mail_Header_Field $ field , $ emptyBefore = TRUE ) { $ name = strtolower ( $ field -> getName ( ) ) ; if ( $ emptyBefore || ! array_key_exists ( $ name , $ this -> fields ) ) $ this -> fields [ $ name ] = array ( ) ; $ this -> fields [ $ name ] [ ] = $ field ; }
Sets an Header Field Object.
@access		public
@param		Net_Mail_Header_Field	$field			Header Field Object to set
@param		boolean					$emptyBefore	Flag: TRUE - set | FALSE - append
@return		void
Sets an Header Field Object .