Source of file HeaderInterface.php
Size: 1,746 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Mail/Header/HeaderInterface.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Mail\Header; interface HeaderInterface { /** * Format value in Mime-Encoding if not US-ASCII encoding is used * * @var bool */ const FORMAT_ENCODED = true; /** * Return value with the interval ZF2 value (UTF-8 non-encoded) * * @var bool */ const FORMAT_RAW = false; /** * Factory to generate a header object from a string * * @param string $headerLine * @return self * @throws Exception\InvalidArgumentException If the header does not match with RFC 2822 definition. * @see http://tools.ietf.org/html/rfc2822#section-2.2 */ public static function fromString($headerLine); /** * Retrieve header name * * @return string */ public function getFieldName(); /** * Retrieve header value * * @param bool $format Return the value in Mime::Encoded or in Raw format * @return string */ public function getFieldValue($format = HeaderInterface::FORMAT_RAW); /** * Set header encoding * * @param string $encoding * @return self */ public function setEncoding($encoding); /** * Get header encoding * * @return string */ public function getEncoding(); /** * Cast to string * * Returns in form of "NAME: VALUE" * * @return string */ public function toString(); } |