Copied!

Represents part of a non-mime message.

Abstract
Methods
public ZBateson\MailMimeParser\Message\MessagePart::__construct(ZBateson\MailMimeParser\Message\PartStreamContainer $streamContainer, ?ZBateson\MailMimeParser\Message\IMimePart $parent = NULL)
public ZBateson\MailMimeParser\Message\MessagePart::__toString() : string
public ZBateson\MailMimeParser\Message\MessagePart::attach(SplObserver $observer) : void
public ZBateson\MailMimeParser\Message\MessagePart::attachContentStream(Psr\Http\Message\StreamInterface $stream, string $streamCharset = 'UTF-8'ZBateson\MailMimeParser\MailMimeParser::DEFAULT_CHARSET)
 
  • return static
public ZBateson\MailMimeParser\Message\MessagePart::detach(SplObserver $observer) : void
public ZBateson\MailMimeParser\Message\MessagePart::detachContentStream()
 
  • return static
public ZBateson\MailMimeParser\Message\MessagePart::getBinaryContentResourceHandle()
public ZBateson\MailMimeParser\Message\MessagePart::getBinaryContentStream()
public getCharset() : ?string
 

Returns ISO-8859-1

  • return string
public ZBateson\MailMimeParser\Message\MessagePart::getContent(string $charset = 'UTF-8'ZBateson\MailMimeParser\MailMimeParser::DEFAULT_CHARSET) : ?string
public getContentDisposition(?string $default = 'inline') : ?string
 

Returns 'inline'.

  • return string
public getContentId() : ?string
 

Returns the Content ID of the part.

NonMimeParts do not have a Content ID, and so this simply returns null.

public ZBateson\MailMimeParser\Message\MessagePart::getContentStream(string $charset = 'UTF-8'ZBateson\MailMimeParser\MailMimeParser::DEFAULT_CHARSET)
public getContentTransferEncoding(?string $default = '7bit') : ?string
 

Returns '7bit'.

  • return string
public getContentType(string $default = 'text/plain') : ?string
 

Returns text/plain

  • return string
public ZBateson\MailMimeParser\Message\MessagePart::getFilename() : ?string
public ZBateson\MailMimeParser\Message\MessagePart::getParent()
public ZBateson\MailMimeParser\Message\MessagePart::getResourceHandle()
public ZBateson\MailMimeParser\Message\MessagePart::getStream()
public ZBateson\MailMimeParser\Message\MessagePart::hasContent() : bool
public isMime() : bool
 

Returns false.

public isTextPart() : bool
 

Returns true.

public ZBateson\MailMimeParser\Message\MessagePart::notify() : void
public ZBateson\MailMimeParser\Message\MessagePart::save( $filenameResourceOrStream, string $filemode = 'w+')
 
  • return static
public ZBateson\MailMimeParser\Message\MessagePart::saveContent( $filenameResourceOrStream) : self
public ZBateson\MailMimeParser\Message\MessagePart::setCharsetOverride(string $charsetOverride, bool $onlyIfNoCharset = false)
 
  • return static
public ZBateson\MailMimeParser\Message\MessagePart::setContent( $resource, string $charset = 'UTF-8'ZBateson\MailMimeParser\MailMimeParser::DEFAULT_CHARSET)
 
  • return static
Properties
protected ZBateson\MailMimeParser\Message\MessagePart::$charsetOverride = NULL
 
  • var ?string can be used to set an override for content's charset in cases where a user knows the charset on the content is not what it claims to be.
protected ZBateson\MailMimeParser\Message\MessagePart::$ignoreTransferEncoding = NULL
 
  • var bool set to true when a user attaches a stream manually, it's assumed to already be decoded or to have relevant transfer encoding decorators attached already.
protected ZBateson\MailMimeParser\Message\MessagePart::$observers = NULL
 
  • var \SplObjectStorage attached observers that need to be notified of modifications to this part.
protected ZBateson\MailMimeParser\Message\MessagePart::$parent = NULL
 
  • var ?\IMimePart parent part
protected ZBateson\MailMimeParser\Message\MessagePart::$partStreamContainer = NULL
 
  • var \PartStreamContainer holds 'stream' and 'content stream'.
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration