Zend\Mime\Part
Class representing a MIME part.
Synopsis
class Part
{
- // members
- public $type;
- public $encoding;
- public $id;
- public $disposition;
- public $filename;
- public $description;
- public $charset;
- public $boundary;
- public $location;
- public $language;
- protected $content;
- protected $isStream;
- protected array $filters;
- // methods
- public void __construct()
- public bool isStream()
- public stream getEncodedStream()
- public string getContent()
- public string getRawContent()
- public array getHeadersArray()
- public String getHeaders()
Members
protected
- $content
- $filters
- $isStream
public
- $boundary
- $charset
- $description
- $disposition
- $encoding
- $filename
- $id
- $language
- $location
- $type
Methods
public
- __construct() — create a new Mime Part.
- getContent() — Get the Content of the current Mime Part in the given encoding.
- getEncodedStream() — if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.
- getHeaders() — Return the headers for this part as a string
- getHeadersArray() — Create and return the array of headers for this MIME part
- getRawContent() — Get the RAW unencoded content from this part
- isStream() — check if this part can be read as a stream.