__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() |
---|
string
header name
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
---|
string
value of header__toString() : string
string
contentcountParts() : int
int
number 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 |
---|
string
bodygetHeader(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).
string
name of header, matches case-insensitive, but camel-case is replaced with dashes
string
change type of return value to 'string' or 'array'
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
---|
string
array
\Zend\Mail\Header\HeaderInterface
\ArrayIterator
value 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.
string
name of header, like in getHeader()
string
the wanted part, default is first, if null an array with all parts is returned
string
key name for the first part
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
---|
string
array
wanted 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
int
number of part starting with 1 for first part
\Zend\Mail\Storage\Part\Exception\ExceptionInterface |
---|
\Zend\Mail\Storage\Part\PartInterface
wanted partgetSize() : int
int
sizeisMultipart() : bool
bool
if part is multipart