Class Zend_Mime_Part

Description

Class representing a MIME part.

  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Mime/Part.php (line 39)


	
			
Variable Summary
 mixed $boundary
 mixed $charset
 mixed $description
 mixed $disposition
 mixed $encoding
 mixed $filename
 mixed $id
 mixed $type
 mixed $_content
 mixed $_isStream
Method Summary
 Zend_Mime_Part __construct (mixed $content)
 String getContent ([ $EOL = Zend_Mime::LINEEND])
 stream getEncodedStream ()
 String getHeaders ([ $EOL = Zend_Mime::LINEEND])
 array getHeadersArray ([ $EOL = Zend_Mime::LINEEND])
 bool isStream ()
Variables
mixed $boundary (line 48)
  • access: public
mixed $charset (line 47)
  • access: public
mixed $description (line 46)
  • access: public
mixed $disposition (line 44)
  • access: public
mixed $encoding = Zend_Mime::ENCODING_8BIT (line 42)
  • access: public
mixed $filename (line 45)
  • access: public
mixed $id (line 43)
  • access: public
mixed $type = Zend_Mime::TYPE_OCTETSTREAM (line 41)
  • access: public
mixed $_content (line 49)
  • access: protected
mixed $_isStream = false (line 50)
  • access: protected
Methods
Constructor __construct (line 60)

create a new Mime Part.

The (unencoded) content of the Part as passed as a string or stream

  • access: public
Zend_Mime_Part __construct (mixed $content)
  • mixed $content: String or Stream containing the content
getContent (line 140)

Get the Content of the current Mime Part in the given encoding.

  • access: public
String getContent ([ $EOL = Zend_Mime::LINEEND])
  • $EOL
getEncodedStream (line 94)

if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.

  • throws: Zend_Mime_Exception if not a stream or unable to append filter
  • access: public
stream getEncodedStream ()
getHeaders (line 199)

Return the headers for this part as a string

  • access: public
String getHeaders ([ $EOL = Zend_Mime::LINEEND])
  • $EOL
getHeadersArray (line 155)

Create and return the array of headers for this MIME part

  • access: public
array getHeadersArray ([ $EOL = Zend_Mime::LINEEND])
  • $EOL
isStream (line 82)

check if this part can be read as a stream.

if true, getEncodedStream can be called, otherwise only getContent can be used to fetch the encoded content of the part

  • access: public
bool isStream ()

Documentation generated on Sat, 05 May 2007 11:57:07 -0700 by phpDocumentor 1.3.2