Parses a single ID from an ID header. Begins consuming on a '<' char, and
ends on a '>' char.
- author Zaahid Bateson
- All
- self
- ZBateson\MailMimeParser\Header\Consumer\GenericConsumer
- ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer
Methods |
public ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::__construct(ZBateson |
public ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::__invoke(string $value) : array Invokes parsing of a header's value into header parts.
|
public static ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getInstance(ZBateson Returns the singleton instance for the class. |
public getTokenSeparators() : array Overridden to return patterns matching the beginning part of an ID ('<'
|
Properties |
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::$consumerService = NULL
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::$partFactory = NULL
|
Methods |
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::advanceToNextToken(Iterator $tokens, bool $isStartToken) Determines if the iterator should be advanced to the next token after The default implementation will advance for a start token, but not
|
protected ZBateson\MailMimeParser\Header\Consumer\GenericConsumer::filterIgnoredSpaces(array $parts) Filters out ignorable spaces between parts in the passed array. Spaces with parts on either side of it that specify they can be ignored
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getAllConsumers() : array Returns this consumer and all unique sub consumers. Loops into the sub-consumers (and their sub-consumers, etc...) finding
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getAllTokenSeparators() : array Returns a list of regular expression markers for this consumer and all
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getConsumerTokenParts(Iterator $tokens) : array Iterates through this consumer's sub-consumers checking if the current If no sub-consumer is responsible for the current token, calls
|
protected getPartForToken(string $token, bool $isLiteral) Returns null for whitespace, and LiteralPart for anything else.
|
protected ZBateson\MailMimeParser\Header\Consumer\GenericConsumer::getSubConsumers() : array Returns \ZBateson\MailMimeParser\Header\Consumer\CommentConsumer and
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getTokenParts(Iterator $tokens) : array Returns an array of IHeaderPart for the current token on the iterator. If the current token is a start token from a sub-consumer, the sub-
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getTokenSplitPattern() : string Returns a regex pattern used to split the input header string. The default implementation calls
|
protected isEndToken(string $token) : bool Returns true for '>'. |
protected isStartToken(string $token) : bool Returns true for '<'. |
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::parseTokensIntoParts(Iterator $tokens) : array Iterates over the passed token Iterator and returns an array of parsed The method checks each token to see if the token matches a sub-consumer's If a sub-consumer's start token is matched, the sub-consumer is invoked After all tokens are read and an array of Header\Parts are constructed,
|
protected ZBateson\MailMimeParser\Header\Consumer\GenericConsumer::processParts(array $parts) : array Overridden to combine all part values into a single string and return it The returned IHeaderParts are all LiteralParts.
|
protected ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::splitRawValue( $rawValue) : array Returns an array of split tokens from the input string. The method calls preg_split using
|
Methods |
public static ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer::getInstance(ZBateson Returns the singleton instance for the class. |