__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\Storage\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() |
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() |
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() |
string
contentcountParts() : int
inherited_from | \Zend\Mail\Storage\Part::countParts() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::countParts() |
int
number 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\Part
current partgetChildren() : \Zend\Mail\Storage\Part
inherited_from | \Zend\Mail\Storage\Part::getChildren() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::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
inherited_from | \Zend\Mail\Storage\Part\File::getContent() |
---|
resource
Optional
\Zend\Mail\Storage\Exception\RuntimeException |
---|
string
bodygetFlags() : array
array
array 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() |
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() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::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() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::getHeaders() |
getPart(int $num) : \Zend\Mail\Storage\Part
inherited_from | \Zend\Mail\Storage\Part\File::getPart() |
---|
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.
inherited_from | \Zend\Mail\Storage\Part\File::getSize() |
---|
int
sizegetTopLines() : string
string
toplineshasChildren() : bool
inherited_from | \Zend\Mail\Storage\Part::hasChildren() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::hasChildren() |
bool
current element has children/is multiparthasFlag(mixed $flag) : bool
mixed
a flag name, use constants defined in \Zend\Mail\Storage
bool
true if set, otherwise falseisMultipart() : bool
inherited_from | \Zend\Mail\Storage\Part::isMultipart() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::isMultipart() |
bool
if part is multipartkey() : string
inherited_from | \Zend\Mail\Storage\Part::key() |
---|---|
inherited_from | \Zend\Mail\Storage\Part\File::key() |
string
key/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() |
bool
check 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 |