Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Mail / Header / HeaderInterface.php
blob35803cf9bfabea62e4b23647774fdba2138e8bb2
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Mail\Header;
12 interface HeaderInterface
14 /**
15 * Format value in Mime-Encoding if not US-ASCII encoding is used
17 * @var bool
19 const FORMAT_ENCODED = true;
21 /**
22 * Return value with the interval ZF2 value (UTF-8 non-encoded)
24 * @var bool
26 const FORMAT_RAW = false;
29 /**
30 * Factory to generate a header object from a string
32 * @param string $headerLine
33 * @return self
34 * @throws Exception\InvalidArgumentException If the header does not match with RFC 2822 definition.
35 * @see http://tools.ietf.org/html/rfc2822#section-2.2
37 public static function fromString($headerLine);
39 /**
40 * Retrieve header name
42 * @return string
44 public function getFieldName();
46 /**
47 * Retrieve header value
49 * @param bool $format Return the value in Mime::Encoded or in Raw format
50 * @return string
52 public function getFieldValue($format = HeaderInterface::FORMAT_RAW);
54 /**
55 * Set header encoding
57 * @param string $encoding
58 * @return self
60 public function setEncoding($encoding);
62 /**
63 * Get header encoding
65 * @return string
67 public function getEncoding();
69 /**
70 * Cast to string
72 * Returns in form of "NAME: VALUE"
74 * @return string
76 public function toString();