public function getHeadersArray($EOL = Zend_Mime::LINEEND)
    {
        $headers = array();

        $contentType = $this->type;
        if ($this->charset) {
            $contentType .= '; charset=' . $this->charset;
        }

        if ($this->boundary) {
            $contentType .= ';' . $EOL
                          . " boundary=\"" . $this->boundary . '"';
        }

        $headers[] = array('Content-Type', $contentType);

        if ($this->encoding) {
            $headers[] = array('Content-Transfer-Encoding', $this->encoding);
        }

        if ($this->id) {
            $headers[]  = array('Content-ID', '<' . $this->id . '>');
        }

        if ($this->disposition) {
            $disposition = $this->disposition;
            if ($this->filename) {
                $disposition .= '; filename="' . $this->filename . '"';
            }
            $headers[] = array('Content-Disposition', $disposition);
        }

        if ($this->description) {
            $headers[] = array('Content-Description', $this->description);
        }

        if ($this->location) {
            $headers[] = array('Content-Location', $this->location);
        }

        if ($this->language){
            $headers[] = array('Content-Language', $this->language);
        }

        return $headers;
    }
public function getHeadersArray($EOL = Zend_Mime::LINEEND)
    {
        $headers = array();

        $contentType = $this->type;
        if ($this->charset) {
            $contentType .= '; charset=' . $this->charset;
        }

        if ($this->boundary) {
            $contentType .= ';' . $EOL
                          . " boundary=\"" . $this->boundary . '"';
        }

        $headers[] = array('Content-Type', $contentType);

        if ($this->encoding) {
            $headers[] = array('Content-Transfer-Encoding', $this->encoding);
        }

        if ($this->id) {
            $headers[]  = array('Content-ID', '<' . $this->id . '>');
        }

        if ($this->disposition) {
            $disposition = $this->disposition;
            if ($this->filename) {
                $disposition .= '; filename="' . $this->filename . '"';
            }
            $headers[] = array('Content-Disposition', $disposition);
        }

        if ($this->description) {
            $headers[] = array('Content-Description', $this->description);
        }

        if ($this->location) {
            $headers[] = array('Content-Location', $this->location);
        }

        if ($this->language){
            $headers[] = array('Content-Language', $this->language);
        }

        return $headers;
    }
public function getHeadersArray ( $ EOL = Zend_Mime :: LINEEND ) { $ headers = array ( ) ; $ contentType = $ this -> type ; if ( $ this -> charset ) { $ contentType .= '; charset=' . $ this -> charset ; } if ( $ this -> boundary ) { $ contentType .= ';' . $ EOL . " boundary=\"" . $ this -> boundary . '"' ; } $ headers [ ] = array ( 'Content-Type' , $ contentType ) ; if ( $ this -> encoding ) { $ headers [ ] = array ( 'Content-Transfer-Encoding' , $ this -> encoding ) ; } if ( $ this -> id ) { $ headers [ ] = array ( 'Content-ID' , '<' . $ this -> id . '>' ) ; } if ( $ this -> disposition ) { $ disposition = $ this -> disposition ; if ( $ this -> filename ) { $ disposition .= '; filename="' . $ this -> filename . '"' ; } $ headers [ ] = array ( 'Content-Disposition' , $ disposition ) ; } if ( $ this -> description ) { $ headers [ ] = array ( 'Content-Description' , $ this -> description ) ; } if ( $ this -> location ) { $ headers [ ] = array ( 'Content-Location' , $ this -> location ) ; } if ( $ this -> language ) { $ headers [ ] = array ( 'Content-Language' , $ this -> language ) ; } return $ headers ; }
Create and return the array of headers for this MIME part

@access public
@return array
Create and return the array of headers for this MIME part