__construct()
__get()
__isset()
__toString()
countParts()
current()
getChildren()
getContent()
getFlags()
getHeader()
getHeaderField()
getHeaders()
getPart()
getSize()
getTopLines()
hasChildren()
hasFlag()
isMultipart()
key()
next()
rewind()
valid()
_cacheContent()
$content
$contentPos
$countParts
$fh
$flags
$headers
$iterationPos
$messageNum
$partPos
$parts
$topLines
__construct(array $params)
In addition to the parameters of Zend_Mail_Part::__construct() this constructor supports: - flags array with flags for message, keys are ignored, use constants defined in Zend_Mail_Storage
array
\Zend\Mail\Storage\Exception\ExceptionInterface |
|---|
__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() |
| inherited_from | \Zend\Mail\Storage\Part\File::__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() |
| inherited_from | \Zend\Mail\Storage\Part\File::__isset() |
string
bool__toString() : string
| inherited_from | \Zend\Mail\Storage\Part::__toString() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::__toString() |
stringcontentcountParts() : int
| inherited_from | \Zend\Mail\Storage\Part::countParts() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::countParts() |
intnumber of sub-partscurrent() : \Zend\Mail\Storage\Part
| inherited_from | \Zend\Mail\Storage\Part::current() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::current() |
\Zend\Mail\Storage\Partcurrent partgetChildren() : \Zend\Mail\Storage\Part
| inherited_from | \Zend\Mail\Storage\Part::getChildren() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::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
| inherited_from | \Zend\Mail\Storage\Part\File::getContent() |
|---|
resourceOptional
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
stringbodygetFlags() : array
arrayarray with flags, key and value are the same for easy lookupgetHeader(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() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::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() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::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() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::getHeaders() |
getPart(int $num) : \Zend\Mail\Storage\Part
| inherited_from | \Zend\Mail\Storage\Part\File::getPart() |
|---|
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.
| inherited_from | \Zend\Mail\Storage\Part\File::getSize() |
|---|
intsizegetTopLines() : string
stringtoplineshasChildren() : bool
| inherited_from | \Zend\Mail\Storage\Part::hasChildren() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::hasChildren() |
boolcurrent element has children/is multiparthasFlag(mixed $flag) : bool
mixeda flag name, use constants defined in \Zend\Mail\Storage
booltrue if set, otherwise falseisMultipart() : bool
| inherited_from | \Zend\Mail\Storage\Part::isMultipart() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::isMultipart() |
boolif part is multipartkey() : string
| inherited_from | \Zend\Mail\Storage\Part::key() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::key() |
stringkey/number of current partnext()
| inherited_from | \Zend\Mail\Storage\Part::next() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::next() |
rewind()
| inherited_from | \Zend\Mail\Storage\Part::rewind() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::rewind() |
valid() : bool
| inherited_from | \Zend\Mail\Storage\Part::valid() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::valid() |
boolcheck if there's a current element_cacheContent() : null
| inherited_from | \Zend\Mail\Storage\Part::_cacheContent() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::_cacheContent() |
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
null$content : null | string
| inherited_from | \Zend\Mail\Storage\Part::$$content |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$content |
$contentPos
| inherited_from | \Zend\Mail\Storage\Part\File::$$contentPos |
|---|
$countParts : null | int
| inherited_from | \Zend\Mail\Storage\Part::$$countParts |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$countParts |
$fh
| inherited_from | \Zend\Mail\Storage\Part\File::$$fh |
|---|
$flags : array
$headers : \Zend\Mail\Headers | null
| inherited_from | \Zend\Mail\Storage\Part::$$headers |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$headers |
$iterationPos : int
| inherited_from | \Zend\Mail\Storage\Part::$$iterationPos |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$iterationPos |
$mail : null | \Zend\Mail\Storage\AbstractStorage
| inherited_from | \Zend\Mail\Storage\Part::$$mail |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$mail |
$partPos
| inherited_from | \Zend\Mail\Storage\Part\File::$$partPos |
|---|
$parts : array
| inherited_from | \Zend\Mail\Storage\Part::$$parts |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$parts |
$topLines : string
| inherited_from | \Zend\Mail\Storage\Part::$$topLines |
|---|---|
| inherited_from | \Zend\Mail\Storage\Part\File::$$topLines |