__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
arrayfull 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() |
stringheader name
\Zend\Mail\Storage\Exception\ExceptionInterface |
|---|
stringvalue 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() |
|---|
stringcontentcountParts() : int
| inherited_from | \Zend\Mail\Storage\Part::countParts() |
|---|
intnumber of sub-partsgetChildren() : \Zend\Mail\Storage\Part
| inherited_from | \Zend\Mail\Storage\Part::getChildren() |
|---|
\Zend\Mail\Storage\Partsame as self::current()getContent(resource $stream) : string
If part is multipart the raw content of this part with all sub parts is returned
resourceOptional
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
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 Mime::LINEEND as delim).
| inherited_from | \Zend\Mail\Storage\Part::getHeader() |
|---|
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\Exception\InvalidArgumentException |
|---|
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.
| inherited_from | \Zend\Mail\Storage\Part::getHeaderField() |
|---|
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\Mime\Exception\RuntimeException |
|---|
stringarraywanted 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
intnumber of part starting with 1 for first part
\Zend\Mail\Storage\Part\Exception\RuntimeException |
|---|
\Zend\Mail\Storage\Partwanted partgetSize() : int
Quite simple implemented currently (not decoding). Handle with care.
intsizehasChildren() : bool
| inherited_from | \Zend\Mail\Storage\Part::hasChildren() |
|---|
boolcurrent element has children/is multipartisMultipart() : bool
| inherited_from | \Zend\Mail\Storage\Part::isMultipart() |
|---|
boolif part is multipartkey() : string
| inherited_from | \Zend\Mail\Storage\Part::key() |
|---|
stringkey/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() |
|---|
boolcheck 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 |
|---|