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\IParser $parser)
public ZBateson\MailMimeParser\Parser\PartBuilder::__destruct()
public getFilename() : ?string
 

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

public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getHeaderContainer()
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getMessageResourceHandle()
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 ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getParent()
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getPart()
 

Returns the IMessagePart associated with this proxy.

  • return \IMessagePart the part.
public ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy::getStream()
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()
 

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.

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

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.

  • return static
public setNextPartFilename(string $nextPartFilename) : self
 

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) : self
 

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) : self
 

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) : self
 

Sets the associated part.

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