category | Zend |
---|---|
package | Zend_Mail |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Mail_Part |
__construct(array $params)
This handler supports the following params:
inherited_from | \Zend_Mail_Part::__construct() |
---|
array
full message with or without headers
\Zend_Mail_Exception |
---|
__construct(array $params)
Zend_Mail_Part supports different sources for content. The possible params are:
array
full message with or without headers
\Zend_Mail_Exception |
---|
__get(string $name) : string
__isset($name) : boolean
__toString() : string
inherited_from | \Zend_Mail_Part_Interface::__toString() |
---|
string
contentcountParts() : integer
inherited_from | \Zend_Mail_Part_Interface::countParts() |
---|
integer
number of sub-partscurrent() : \Zend_Mail_Part
\Zend_Mail_Part
current partgetChildren() : \Zend_Mail_Part
\Zend_Mail_Part
same as self::current()getContent($stream = null
) : string
If part is multipart the raw content of this part with all sub parts is returned
inherited_from | \Zend_Mail_Part::getContent() |
---|
\Zend_Mail_Exception |
---|
string
bodygetContent() : string
If part is multipart the raw content of this part with all sub parts is returned
inherited_from | \Zend_Mail_Part_Interface::getContent() |
---|
\Zend_Mail_Exception |
---|
string
bodygetHeader(string $name, string $format = null
) : string | array
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).
inherited_from | \Zend_Mail_Part_Interface::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_Exception |
---|
string
array
value of header in wanted or internal formatgetHeaderField(string $name, string $wantedPart= 0
, string $firstName= 0
) : string | 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.
inherited_from | \Zend_Mail_Part_Interface::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_Exception, |
Zend_Mail_Exception |
---|
string
array
wanted part or all parts as array($firstName => firstPart, partname => value)getHeaders() : array
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.
inherited_from | \Zend_Mail_Part_Interface::getHeaders() |
---|
array
headers as array(name => value)getPart(integer $num) : \Zend_Mail_Part
inherited_from | \Zend_Mail_Part::getPart() |
---|
integer
number of part starting with 1 for first part
\Zend_Mail_Exception |
---|
\Zend_Mail_Part
wanted partgetPart(integer $num) : \Zend_Mail_Part
inherited_from | \Zend_Mail_Part_Interface::getPart() |
---|
integer
number of part starting with 1 for first part
\Zend_Mail_Exception |
---|
\Zend_Mail_Part
wanted partgetPartClass() : string
string
getSize() : integer
Quite simple implemented currently (not decoding). Handle with care.
inherited_from | \Zend_Mail_Part::getSize() |
---|
integer
sizegetSize() : integer
Quite simple implemented currently (not decoding). Handle with care.
inherited_from | \Zend_Mail_Part_Interface::getSize() |
---|
integer
sizehasChildren() : boolean
boolean
current element has children/is multipartheaderExists(string $name) : boolean
string
boolean
isMultipart() : boolean
inherited_from | \Zend_Mail_Part_Interface::isMultipart() |
---|
boolean
if part is multipartkey() : string
string
key/number of current partnext() : null
null
rewind() : null
null
setPartClass(string $class) : \Zend_Mail_Part
string
\Zend_Mail_Part
valid() : boolean
boolean
check if there's a current element_cacheContent() : null
\Zend_Mail_Exception |
---|
null
_validateHeaders(array $headers, boolean $assertNames = true
)
array
boolean
$_content : null | string
$_contentPos
array()
$_countParts : null | integer
$_fh
$_headers : null | array
$_iterationPos : integer
1
$_mail : null | \Zend_Mail_Storage_Abstract
$_partClass : string
$_partPos
array()
$_parts : array
array()
$_topLines : string
''