Copied!

A bi-directional parser-to-part proxy for NonMimeParser and IUUEncodedParts.

CloneableInstantiable
Methods
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::__construct(ZBateson\MailMimeParser\Parser\PartBuilder $partBuilder, ZBateson\MailMimeParser\Parser\IParserService $parser)
public ZBateson\MailMimeParser\Parser\PartBuilder::__destruct()
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::addError(string $message, string $level) : ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy
public getFilename() : ?string
 

Returns the filename included in the uuencoded 'begin' line for this part.

public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getHeaderContainer() : ZBateson\MailMimeParser\Message\PartHeaderContainer
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getMessageResourceHandle() : ?mixed
 
  • return resource
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getMessageResourceHandlePos() : int
public getNextPartFilename() : ?string
 

Returns the next part's filename in a uu-encoded 'begin' line if one exists, or null otherwise.

As this is a message-wide setting, ParserUUEncodedPartProxy calls getNextPartFilename() on its parent (a ParserNonMimeMessageProxy, which stores/returns this information).

  • return ?string The file name or null
public getNextPartMode() : ?int
 

Returns the next part's unix file mode in a uu-encoded 'begin' line if one exists, or null otherwise.

As this is a message-wide setting, ParserUUEncodedPartProxy calls getNextPartMode() on its parent (a ParserNonMimeMessageProxy, which stores/returns this information).

  • return int|null The file mode or null
public getNextPartStart() : ?int
 

Returns the next part's start position within the message's raw stream, or null if not set, not discovered, or there are no more parts under this message.

As this is a message-wide setting, ParserUUEncodedPartProxy calls getNextPartStart() on its parent (a ParserNonMimeMessageProxy, which stores/returns this information).

  • return int|null The start position or null
public getParent() : ZBateson\MailMimeParser\Parser\Proxy\ParserNonMimeMessageProxy
 

Only has a single parent of type ParserNonMimeMessageProxy, overridden to specify ParserNonMimeMessageProxy as the return type.

public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getPart() : ZBateson\MailMimeParser\Message\IMessagePart
 

Returns the IMessagePart associated with this proxy.

  • return \IMessagePart the part.
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getStream() : Psr\Http\Message\StreamInterface
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getStreamContentLength() : int
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getStreamContentStartPos() : ?int
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getStreamPartLength() : int
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getStreamPartStartPos() : int
public getUnixFileMode() : ?int
 

Returns the file mode included in the uuencoded 'begin' line for this part.

public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::isContentParsed() : bool
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::isMime() : bool
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::parseAll() : static
 

Parses everything under this part.

For ParserPartProxy, this is just content, but sub-classes may override this to parse all children as well for example.

public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::parseContent() : static
 

Requests the parser to parse this part's content, and call setStreamContentStartPos/EndPos to setup this part's boundaries within the main message's raw stream.

The method first checks to see if the content has already been parsed, and is safe to call multiple times.

public setNextPartFilename(string $nextPartFilename) : static
 

Sets the next part's filename from its 'begin' line.

As this is a message-wide setting, ParserUUEncodedPartProxy calls setNextPartFilename() on its parent (a ParserNonMimeMessageProxy, which stores/returns this information).

public setNextPartMode(int $nextPartMode) : static
 

Sets the next part's unix file mode from its 'begin' line.

As this is a message-wide setting, ParserUUEncodedPartProxy calls setNextPartMode() on its parent (a ParserNonMimeMessageProxy, which stores/returns this information).

public setNextPartStart(int $nextPartStart) : static
 

Sets the next part's start position within the message's raw stream.

As this is a message-wide setting, ParserUUEncodedPartProxy calls setNextPartStart() on its parent (a ParserNonMimeMessageProxy, which stores/returns this information).

public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::setPart(ZBateson\MailMimeParser\Message\IMessagePart $part) : static
 

Sets the associated part.

  • param \IMessagePart $part The part
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::setStreamContentStartPos(int $streamContentStartPos) : static
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::setStreamPartAndContentEndPos(int $streamContentEndPos) : static
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::setStreamPartEndPos(int $streamPartEndPos) : static
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::setStreamPartStartPos(int $streamPartStartPos) : static
Properties
protected ZBateson\MailMimeParser\Parser\IParserService ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::$parser
 
  • var \IParserService The parser.
protected ZBateson\MailMimeParser\Parser\PartBuilder ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::$partBuilder
 
  • var \PartBuilder The part's PartBuilder.
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration