Zend\Mail\Storage\Message
Synopsis
class Message
extends Part
implements
MessageInterface
{
- // members
- protected array $flags;
- // Inherited members from Part
- protected Headers|null $headers;
- protected null|string $content;
- protected string $topLines;
- protected array $parts;
- protected null|int $countParts;
- protected integer $iterationPos;
- protected null|AbstractStorage $mail;
- protected integer $messageNum;
- // methods
- public void __construct()
- public string getTopLines()
- public bool hasFlag()
- public array getFlags()
- // Inherited methods from Part
- public void __construct()
- public bool isMultipart()
- public string getContent()
- public int getSize()
- protected null _cacheContent()
- public Part getPart()
- public int countParts()
- public Headers getHeaders()
- public ArrayIterator getHeader()
- public string|array getHeaderField()
- public string __get()
- public bool __isset()
- public string __toString()
- public bool hasChildren()
- public Part getChildren()
- public bool valid()
- public void next()
- public string key()
- public Part current()
- public void rewind()
Hierarchy
Members
protected
- $content
—
Zend\Mail\Storage\null|string
raw part body - $countParts
—
Zend\Mail\Storage\null|int
count of parts of a multipart message - $flags
—
array
flags for this message - $headers
—
Zend\Mail\Storage\Headers|null
Headers of the part - $iterationPos
—
int
current position of iterator - $mail
—
Zend\Mail\Storage\null|AbstractStorage
mail handler, if late fetch is active - $messageNum
—
int
message number for mail handler - $parts
—
array
parts of multipart message - $topLines
—
string
toplines as fetched with headers
Methods
public
- __construct() — Public constructor
- getFlags() — get all set flags
- getTopLines() — return toplines as found after headers
- hasFlag() — check if flag is set
Inherited from Zend\Mail\Storage\Part
protected
- _cacheContent() — Cache content and split in parts if multipart
public
- __get() — Getter for mail headers - name is matched in lowercase
- __isset() — Isset magic method proxy to hasHeader
- __toString() — magic method to get content of part
- countParts() — Count parts of a multipart part
- current() — implements Iterator::current()
- getChildren() — implements RecursiveIterator::getChildren()
- getContent() — Body of part
- getHeader() — Get a header in specified format
- getHeaderField() — Get a specific field from a header like content type or all fields as array
- getHeaders() — Access headers collection
- getPart() — Get part of multipart message
- getSize() — Return size of part
- hasChildren() — implements RecursiveIterator::hasChildren()
- isMultipart() — Check if part is a multipart message
- key() — implements Iterator::key()
- next() — implements Iterator::next()
- rewind() — implements Iterator::rewind()
- valid() — implements Iterator::valid()