A quoted literal header string part. The value of the part is stripped of CR and LF characters, and whitespace between two adjacent MimeTokens is removed.
- author Zaahid Bateson
- All
- self
- ZBateson\MailMimeParser\Header\Part\ContainerPart
- ZBateson\MailMimeParser\Header\Part\HeaderPart
- ZBateson\MailMimeParser\ErrorBag
Methods |
public ZBateson\MailMimeParser\Header\Part\ContainerPart::__construct(Psr\Log\LoggerInterface $logger, ZBateson |
public ZBateson\MailMimeParser\Header\Part\HeaderPart::__toString() : string Returns the value of the part (which is a string).
|
public ZBateson\MailMimeParser\ErrorBag::addError(string $message, string $psrLogLevel, ?Throwable $exception = NULL) : static |
public ZBateson\MailMimeParser\ErrorBag::getAllErrors(bool $validate = false, string $minPsrLevel = 'error'Psr\Log\LogLevel::ERROR) : array |
public ZBateson\MailMimeParser\Header\Part\ContainerPart::getChildParts() : array Returns the child parts this container part consists of.
|
public ZBateson\MailMimeParser\Header\Part\ContainerPart::getComments() : array |
public ZBateson\MailMimeParser\ErrorBag::getErrorLoggingContextName() : string Returns the class name. Override to identify objects in logs. |
public ZBateson\MailMimeParser\ErrorBag::getErrors(bool $validate = false, string $minPsrLevel = 'error'Psr\Log\LogLevel::ERROR) : array |
public ZBateson\MailMimeParser\Header\Part\HeaderPart::getValue() : string Returns the part's representative value after any necessary processing has been performed. For the raw value, call getRawValue(). |
public ZBateson\MailMimeParser\ErrorBag::hasAnyErrors(bool $validate = false, string $minPsrLevel = 'error'Psr\Log\LogLevel::ERROR) : bool |
public ZBateson\MailMimeParser\ErrorBag::hasErrors(bool $validate = false, string $minPsrLevel = 'error'Psr\Log\LogLevel::ERROR) : bool |
Properties |
protected bool ZBateson\MailMimeParser\Header\Part\HeaderPart::$canIgnoreSpacesAfter = false
|
protected bool ZBateson\MailMimeParser\Header\Part\HeaderPart::$canIgnoreSpacesBefore = false
|
protected ZBateson
|
protected ZBateson\MailMimeParser\Header\Part\ContainerPart::$children = []
|
protected bool ZBateson\MailMimeParser\Header\Part\HeaderPart::$isSpace = false True if the part is a space token |
protected Psr\Log\LoggerInterface ZBateson\MailMimeParser\ErrorBag::$logger |
protected string ZBateson\MailMimeParser\Header\Part\HeaderPart::$value
|
Methods |
protected ZBateson\MailMimeParser\Header\Part\HeaderPart::convertEncoding(string $str, string $from = 'ISO-8859-1', bool $force = false) : string Ensures the encoding of the passed string is set to UTF-8. The method does nothing if the passed $from charset is UTF-8 already, or if $force is set to false and mb_check_encoding for $str returns true for 'UTF-8'.
|
protected filterIgnoredSpaces(array $parts) : array Strips spaces found between two adjacent MimeToken parts. Other whitespace is returned as-is.
|
protected ZBateson\MailMimeParser\Header\Part\ContainerPart::getErrorBagChildren() : array Returns this part's children, same as getChildParts().
|
protected ZBateson\MailMimeParser\Header\Part\ContainerPart::getValueFromParts(array $parts) : string Creates the string value representation of this part constructed from the child parts passed to it. The default implementation filters out ignorable whitespace between parts, and concatenates parts calling 'getValue'.
|
protected ZBateson\MailMimeParser\ErrorBag::validate() : void Perform any extra validation and call 'addError'. getErrors and getAllErrors call validate() if their $validate parameter is true. validate() is only called once on an object with getErrors getAllErrors. |