From ca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6 Mon Sep 17 00:00:00 2001 From: yehudah Date: Sun, 15 Oct 2017 06:46:12 +0000 Subject: release --- .../Zend-1.12.10/Mail/Part/Interface.php | 136 +++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 Postman/Postman-Mail/Zend-1.12.10/Mail/Part/Interface.php (limited to 'Postman/Postman-Mail/Zend-1.12.10/Mail/Part/Interface.php') diff --git a/Postman/Postman-Mail/Zend-1.12.10/Mail/Part/Interface.php b/Postman/Postman-Mail/Zend-1.12.10/Mail/Part/Interface.php new file mode 100644 index 0000000..ac9656f --- /dev/null +++ b/Postman/Postman-Mail/Zend-1.12.10/Mail/Part/Interface.php @@ -0,0 +1,136 @@ + value) + */ + public function getHeaders(); + + /** + * Get 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 Postman_Zend_Mime::LINEEND as delim). + * + * @param string $name name of header, matches case-insensitive, but camel-case is replaced with dashes + * @param string $format change type of return value to 'string' or 'array' + * @return string|array value of header in wanted or internal format + * @throws Postman_Zend_Mail_Exception + */ + public function getHeader($name, $format = null); + + /** + * Get 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 Postman_Zend_Mail_Exception if the requested header does not exist. If + * the specific header field does not exist, returns null. + * + * @param string $name name of header, like in getHeader() + * @param string $wantedPart the wanted part, default is first, if null an array with all parts is returned + * @param string $firstName key name for the first part + * @return string|array wanted part or all parts as array($firstName => firstPart, partname => value) + * @throws Postman_Zend_Exception, Postman_Zend_Mail_Exception + */ + public function getHeaderField($name, $wantedPart = 0, $firstName = 0); + + + /** + * Getter for mail headers - name is matched in lowercase + * + * This getter is short for Postman_Zend_Mail_Part::getHeader($name, 'string') + * + * @see Postman_Zend_Mail_Part::getHeader() + * + * @param string $name header name + * @return string value of header + * @throws Postman_Zend_Mail_Exception + */ + public function __get($name); + + /** + * magic method to get content of part + * + * @return string content + */ + public function __toString(); +} -- cgit v1.2.3