__get()
__toString()
countParts()
getContent()
getHeader()
getHeaderField()
getHeaders()
getPart()
getSize()
isMultipart()
__get(string $name) : string
This getter is short for PartInterface::getHeader($name, 'string')
| see | \Zend\Mail\Storage\Part\PartInterface::getHeader() |
|---|
stringheader name
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
|---|
stringvalue of header__toString() : string
stringcontentcountParts() : int
intnumber of sub-partsgetContent() : string
If part is multipart the raw content of this part with all sub parts is returned
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
|---|
stringbodygetHeader(string $name, string $format) : string | array | \Zend\Mail\Header\HeaderInterface | \ArrayIterator
Internally headers that occur more than once are saved as array, all other as string. If $format is set to string implode is used to concat the values (with Zend\Mime\Mime::LINEEND as delim).
stringname of header, matches case-insensitive, but camel-case is replaced with dashes
stringchange type of return value to 'string' or 'array'
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
|---|
stringarray\Zend\Mail\Header\HeaderInterface\ArrayIteratorvalue of header in wanted or internal formatgetHeaderField(string $name, string $wantedPart, string $firstName) : string | array
If the header occurs more than once, only the value from the first header is returned.
Throws an exception if the requested header does not exist. If the specific header field does not exist, returns null.
stringname of header, like in getHeader()
stringthe wanted part, default is first, if null an array with all parts is returned
stringkey name for the first part
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
|---|
stringarraywanted part or all parts as array($firstName => firstPart, partname => value)getHeaders() : \Zend\Mail\Headers
The returned headers are as saved internally. All names are lowercased. The value is a string or an array if a header with the same name occurs more than once.
getPart(int $num) : \Zend\Mail\Storage\Part\PartInterface
intnumber of part starting with 1 for first part
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
|---|
\Zend\Mail\Storage\Part\PartInterfacewanted partgetSize() : int
intsizeisMultipart() : bool
boolif part is multipart