__construct()
__get()
__isset()
__toString()
countParts()
current()
getChildren()
getContent()
getHeader()
getHeaderField()
getHeaders()
getPart()
getSize()
hasChildren()
isMultipart()
key()
next()
rewind()
valid()
_cacheContent()
$content
$contentPos
$countParts
$fh
$headers
$iterationPos
$messageNum
$partPos
$parts
$topLines
__construct(array $params)
This handler supports the following params: - file filename or open file handler with message content (required) - startPos start position of message or part in file (default: current position) - endPos end position of message or part in file (default: end of file) - EOL end of Line for messages
array
full message with or without headers
\Zend\Mail\Storage\Part\Exception\RuntimeException |
|
---|---|
\Zend\Mail\Storage\Part\Exception\InvalidArgumentException |
__get(string $name) : string
This getter is short for Part::getHeader($name, 'string')
see | \Zend\Mail\Storage\Part::getHeader() |
---|---|
inherited_from | \Zend\Mail\Storage\Part::__get() |
string
header name
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
string
value of header__isset($name) : bool
This method is short syntax for Part::hasHeader($name);
see | \Zend\Mail\Storage\Part::hasHeader |
---|---|
inherited_from | \Zend\Mail\Storage\Part::__isset() |
string
bool
__toString() : string
inherited_from | \Zend\Mail\Storage\Part::__toString() |
---|
string
contentcountParts() : int
inherited_from | \Zend\Mail\Storage\Part::countParts() |
---|
int
number of sub-partsgetChildren() : \Zend\Mail\Storage\Part
inherited_from | \Zend\Mail\Storage\Part::getChildren() |
---|
\Zend\Mail\Storage\Part
same as self::current()getContent(resource $stream) : string
If part is multipart the raw content of this part with all sub parts is returned
resource
Optional
\Zend\Mail\Storage\Exception\RuntimeException |
---|
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 Mime::LINEEND as delim).
inherited_from | \Zend\Mail\Storage\Part::getHeader() |
---|
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\Exception\InvalidArgumentException |
---|
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.
inherited_from | \Zend\Mail\Storage\Part::getHeaderField() |
---|
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\Mime\Exception\RuntimeException |
---|
string
array
wanted part or all parts as array($firstName => firstPart, partname => value)getHeaders() : \Zend\Mail\Headers
Lazy-loads if not already attached.
inherited_from | \Zend\Mail\Storage\Part::getHeaders() |
---|
getPart(int $num) : \Zend\Mail\Storage\Part
int
number of part starting with 1 for first part
\Zend\Mail\Storage\Part\Exception\RuntimeException |
---|
\Zend\Mail\Storage\Part
wanted partgetSize() : int
Quite simple implemented currently (not decoding). Handle with care.
int
sizehasChildren() : bool
inherited_from | \Zend\Mail\Storage\Part::hasChildren() |
---|
bool
current element has children/is multipartisMultipart() : bool
inherited_from | \Zend\Mail\Storage\Part::isMultipart() |
---|
bool
if part is multipartkey() : string
inherited_from | \Zend\Mail\Storage\Part::key() |
---|
string
key/number of current partnext()
inherited_from | \Zend\Mail\Storage\Part::next() |
---|
rewind()
inherited_from | \Zend\Mail\Storage\Part::rewind() |
---|
valid() : bool
inherited_from | \Zend\Mail\Storage\Part::valid() |
---|
bool
check if there's a current element_cacheContent() : null
inherited_from | \Zend\Mail\Storage\Part::_cacheContent() |
---|
\Zend\Mail\Storage\Exception\RuntimeException |
---|
null
$content : null | string
inherited_from | \Zend\Mail\Storage\Part::$$content |
---|
$contentPos
$countParts : null | int
inherited_from | \Zend\Mail\Storage\Part::$$countParts |
---|
$fh
$headers : \Zend\Mail\Headers | null
inherited_from | \Zend\Mail\Storage\Part::$$headers |
---|
$iterationPos : int
inherited_from | \Zend\Mail\Storage\Part::$$iterationPos |
---|
$mail : null | \Zend\Mail\Storage\AbstractStorage
inherited_from | \Zend\Mail\Storage\Part::$$mail |
---|
$partPos
$parts : array
inherited_from | \Zend\Mail\Storage\Part::$$parts |
---|
$topLines : string
inherited_from | \Zend\Mail\Storage\Part::$$topLines |
---|