Zend\Mail\Storage\Part\File
Synopsis
class File
extends Part
{
- // members
- protected array $contentPos;
- protected array $partPos;
- protected $fh;
- // 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 getContent()
- public int getSize()
- public Part getPart()
- // 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 - $contentPos
- $countParts
—
Zend\Mail\Storage\null|int
count of parts of a multipart message - $fh
- $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 - $partPos
- $parts
—
array
parts of multipart message - $topLines
—
string
toplines as fetched with headers
Methods
public
- __construct() — Public constructor
- getContent() — Body of part
- getPart() — Get part of multipart message
- getSize() — Return size of part
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()