Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
null|string $_content = ''raw part body
Detailsnull|int $_countParts = ''count of parts of a multipart message
Detailsnull|array $_headers = ''headers of part as array
Detailsint $_iterationPos = '1'current position of iterator
Detailsnull|Zend_Mail_Storage_Abstract $_mail = ''mail handler, if late fetch is active
Detailsint $_messageNum = '0'message number for mail handler
Detailsarray $_parts = 'array'parts of multipart message
Detailsstring $_topLines = ''toplines as fetched with headers
Details__construct(
array $params
)
:
Public constructor
Zend_Mail_Part supports different sources for content. The possible params are: - handler a instance of Zend_Mail_Storage_Abstract for late fetch - id number of message for handler - raw raw content with header and body as string - headers headers as array (name => value) or string, if a content part is found it's used as toplines - noToplines ignore content found after headers in param 'headers' - content content as string
Details__get(
string $name
)
:
stringGetter for mail headers - name is matched in lowercase
This getter is short for Zend_Mail_Part::getHeader($name, 'string')
Details__isset(
$name
)
:
booleanIsset magic method proxy to hasHeader
This method is short syntax for Zend_Mail_Part::hasHeader($name);
Details__toString(
)
:
stringmagic method to get content of part
Details_cacheContent(
)
:
nullCache content and split in parts if multipart
DetailscountParts(
)
:
intCount parts of a multipart part
Detailscurrent(
)
:
Zend_Mail_Partimplements Iterator::current()
DetailsgetChildren(
)
:
Zend_Mail_Partimplements RecursiveIterator::getChildren()
DetailsgetContent(
)
:
stringBody of part
If part is multipart the raw content of this part with all sub parts is returned
DetailsgetHeader(
string $name, string $format
=
null
)
:
string|arrayGet a header in specificed format
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::LINEEND as delim).
DetailsgetHeaderField(
string $name, string $wantedPart
=
0, string $firstName
=
0
)
:
string|arrayGet a specific field from a header like content type or all fields as array
If the header occurs more than once, only the value from the first header is returned.
Throws a Zend_Mail_Exception if the requested header does not exist. If the specific header field does not exist, returns null.
DetailsgetHeaders(
)
:
arrayGet all 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.
DetailsgetPart(
int $num
)
:
Zend_Mail_PartGet part of multipart message
DetailsgetSize(
)
:
intReturn size of part
Quite simple implemented currently (not decoding). Handle with care.
DetailshasChildren(
)
:
boolimplements RecursiveIterator::hasChildren()
DetailsheaderExists(
string $name
)
:
booleanCheck wheater the Mail part has a specific header.
DetailsisMultipart(
)
:
boolCheck if part is a multipart message
Detailskey(
)
:
stringimplements Iterator::key()
Detailsnext(
)
:
nullimplements Iterator::next()
Detailsrewind(
)
:
nullimplements Iterator::rewind()
Detailsvalid(
)
:
boolimplements Iterator::valid()
Details