__construct()
__destruct()
__get()
close()
count()
countMessages()
current()
getCapabilities()
getMessage()
getNumberByUniqueId()
getRawContent()
getRawHeader()
getSize()
getUniqueId()
key()
next()
noop()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
removeMessage()
rewind()
seek()
valid()
_getFileData()
_getMaildirFiles()
_isMaildir()
_openMaildir()
$files
$has
$iterationMax
$iterationPos
$knownFlags
$messageClass
__construct(\Zend\Mail\Storage\$params $params)
\Zend\Mail\Storage\$params
array mail reader specific parameters
\Zend\Mail\Storage\Exception\InvalidArgumentException |
---|
__destruct()
inherited_from | \Zend\Mail\Storage\AbstractStorage::__destruct() |
---|
__get(string $var) : bool
The standard has properties are: hasFolder, hasUniqueid, hasDelete, hasCreate, hasTop
The valid values for the has-properties are: - true if a feature is supported - false if a feature is not supported - null is it's not yet known or it can't be know if a feature is supported
inherited_from | \Zend\Mail\Storage\AbstractStorage::__get() |
---|
string
property name
\Zend\Mail\Storage\Exception\InvalidArgumentException |
---|
bool
supported or notclose()
If you need to control, when the resource is closed. Otherwise the destructor would call this.
count() : int
inherited_from | \Zend\Mail\Storage\AbstractStorage::count() |
---|
int
countMessages(mixed $flags) : int
mixed
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
int
number of messagescurrent() : \Zend\Mail\Storage\Message
inherited_from | \Zend\Mail\Storage\AbstractStorage::current() |
---|
\Zend\Mail\Storage\Message
current messagegetCapabilities() : array
inherited_from | \Zend\Mail\Storage\AbstractStorage::getCapabilities() |
---|
array
list of features as array(feature_name => true|false[|null])getMessage(int $id) : \Zend\Mail\Storage\Message\File
int
number of message
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
getNumberByUniqueId(string $id) : int
I.e. if you have a webmailer that supports deleting messages you should use unique ids as parameter and use this method to translate it to message number right before calling removeMessage()
string
unique id
\Zend\Mail\Storage\Exception\InvalidArgumentException |
---|
int
message numbergetRawContent(int $id, null | array | string $part) : string
int
number of message
nullarraystring
path to part or null for message content
string
raw contentgetRawHeader(int $id, null | array | string $part, int $topLines) : string
int
number of message
nullarraystring
path to part or null for message header
int
include this many lines with header (after an empty line)
string
raw headergetSize(int | null $id) : int | array
intnull
number of message or null for all messages
int
array
size of given message of list with all messages as array(num => size)getUniqueId(int | null $id) : array | string
if storage does not support unique ids it's the same as the message number
intnull
message number
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
array
string
message number for given message or all messages as arraykey() : int
inherited_from | \Zend\Mail\Storage\AbstractStorage::key() |
---|
int
id of current positionnext()
inherited_from | \Zend\Mail\Storage\AbstractStorage::next() |
---|
noop() : bool
bool
always return trueoffsetExists(int $id) : bool
inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetExists() |
---|
int
bool
offsetGet(int $id) : \Zend\Mail\Storage\Message
inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetGet() |
---|
int
\Zend\Mail\Storage\Message
message objectoffsetSet(mixed $id, mixed $value)
inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetSet() |
---|
mixed
mixed
\Zend\Mail\Storage\Exception\RuntimeException |
---|
offsetUnset(int $id) : bool
inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetUnset() |
---|
int
bool
successremoveMessage($id)
rewind()
Rewind always gets the new count from the storage. Thus if you use the interfaces and your scripts take long you should use reset() from time to time.
inherited_from | \Zend\Mail\Storage\AbstractStorage::rewind() |
---|
seek(int $pos)
inherited_from | \Zend\Mail\Storage\AbstractStorage::seek() |
---|
int
\Zend\Mail\Storage\Exception\OutOfBoundsException |
---|
valid() : bool
inherited_from | \Zend\Mail\Storage\AbstractStorage::valid() |
---|
bool
_getFileData(int $id, string | null $field) : string | array
Also checks if message is valid
int
message number
stringnull
wanted field
\Zend\Mail\Storage\Exception\InvalidArgumentException |
---|
string
array
wanted field or all fields as array_getMaildirFiles(resource $dh, string $dirname, array $defaultFlags)
resource
dir handle used for search
string
dirname of dir in $dh
array
default flags for given dir
_isMaildir(string $dirname) : bool
string
name of dir
bool
dir is valid maildir_openMaildir(string $dirname)
$files : array
$has : array
inherited_from | \Zend\Mail\Storage\AbstractStorage::$$has |
---|
$iterationMax : null | int
inherited_from | \Zend\Mail\Storage\AbstractStorage::$$iterationMax |
---|
$iterationPos : int
inherited_from | \Zend\Mail\Storage\AbstractStorage::$$iterationPos |
---|
$knownFlags : array
This list has to be in alphabetical order for setFlags()