__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()
$has
$iterationMax
$iterationPos
$messageClass
__construct(array $params)
array
mail reader specific parameters
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
__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
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
int
countMessages() : int
current() : \Zend\Mail\Storage\Message
\Zend\Mail\Storage\Message
current messagegetCapabilities() : array
array
list of features as array(feature_name => true|false[|null])getMessage(\Zend\Mail\Storage\$id $id) : \Zend\Mail\Storage\Message
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\ExceptionInterface |
---|
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 $id) : int | array
int
number of message
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
int
id of current positionnext()
noop()
offsetExists(int $id) : bool
int
bool
offsetSet(mixed $id, mixed $value)
offsetUnset(int $id) : bool
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.
seek(int $pos)
valid() : bool
bool
$has : array
$iterationMax : null | int
$iterationPos : int