Serves as a base-consumer for ID headers (like Message-ID and Content-ID).
IdBaseConsumer handles invalidly-formatted IDs not within '<' and '>'
characters. Processing for validly-formatted IDs are passed on to its
sub-consumer, IdConsumer.
- author Zaahid Bateson
CloneableInstantiable
Methods |
Properties |
Methods |
protected getPartForToken(string $token, bool $isLiteral) Returns null for whitespace, and LiteralPart for anything else.
|
protected getSubConsumers() : array Returns the following as sub-consumers:
|
protected getTokenSeparators() : array Returns '\s+' as a whitespace separator.
|
protected isEndToken(string $token) : bool IdBaseConsumer doesn't have start/end tokens, and so always returns |
protected isStartToken(string $token) : bool IdBaseConsumer doesn't have start/end tokens, and so always returns
|
protected processParts(array $parts) : array Overridden to filter out any found CommentPart objects.
|
Methods |