__construct()
__destruct()
__get()
close()
count()
countMessages()
current()
getCapabilities()
getCurrentFolder()
getFolders()
getMessage()
getNumberByUniqueId()
getRawContent()
getRawHeader()
getSize()
getUniqueId()
key()
next()
noop()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
removeMessage()
rewind()
seek()
selectFolder()
valid()
_buildFolderTree()
_getFileData()
_getMaildirFiles()
_isMaildir()
_openMaildir()
$currentFolder
$delim
$files
$has
$iterationMax
$iterationPos
$knownFlags
$messageClass
$rootFolder
$rootdir
__construct(\Zend\Mail\Storage\Folder\$params $params)
\Zend\Mail\Storage\Folder\$paramsarray mail reader specific parameters
\Zend\Mail\Storage\Exception\InvalidArgumentException |
|---|
__destruct()
| inherited_from | \Zend\Mail\Storage\AbstractStorage::__destruct() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::__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() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::__get() |
stringproperty name
\Zend\Mail\Storage\Exception\InvalidArgumentException |
|---|
boolsupported or notclose()
If you need to control, when the resource is closed. Otherwise the destructor would call this.
| inherited_from | \Zend\Mail\Storage\Maildir::close() |
|---|
count() : int
| inherited_from | \Zend\Mail\Storage\AbstractStorage::count() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::count() |
intcountMessages(mixed $flags) : int
| inherited_from | \Zend\Mail\Storage\Maildir::countMessages() |
|---|
mixed
\Zend\Mail\Storage\Exception\ExceptionInterface |
|---|
intnumber of messagescurrent() : \Zend\Mail\Storage\Message
| inherited_from | \Zend\Mail\Storage\AbstractStorage::current() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::current() |
\Zend\Mail\Storage\Messagecurrent messagegetCapabilities() : array
| inherited_from | \Zend\Mail\Storage\AbstractStorage::getCapabilities() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::getCapabilities() |
arraylist of features as array(feature_name => true|false[|null])getCurrentFolder() : \Zend\Mail\Storage\Folder
\Zend\Mail\Storage\Exception\ExceptionInterface |
|---|
\Zend\Mail\Storage\Folderinstance of current foldergetFolders(string $rootFolder) : \Zend\Mail\Storage\Folder
stringget folder structure for given folder, else root
\Zend\Mail\Storage\Exception\InvalidArgumentException |
|---|
\Zend\Mail\Storage\Folderroot or wanted foldergetMessage(int $id) : \Zend\Mail\Storage\Message\File
| inherited_from | \Zend\Mail\Storage\Maildir::getMessage() |
|---|
intnumber 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()
| inherited_from | \Zend\Mail\Storage\Maildir::getNumberByUniqueId() |
|---|
stringunique id
\Zend\Mail\Storage\Exception\InvalidArgumentException |
|---|
intmessage numbergetRawContent(int $id, null | array | string $part) : string
| inherited_from | \Zend\Mail\Storage\Maildir::getRawContent() |
|---|
intnumber of message
nullarraystringpath to part or null for message content
stringraw contentgetRawHeader(int $id, null | array | string $part, int $topLines) : string
| inherited_from | \Zend\Mail\Storage\Maildir::getRawHeader() |
|---|
intnumber of message
nullarraystringpath to part or null for message header
intinclude this many lines with header (after an empty line)
stringraw headergetSize(int | null $id) : int | array
| inherited_from | \Zend\Mail\Storage\Maildir::getSize() |
|---|
intnullnumber of message or null for all messages
intarraysize 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
| inherited_from | \Zend\Mail\Storage\Maildir::getUniqueId() |
|---|
intnullmessage number
\Zend\Mail\Storage\Exception\ExceptionInterface |
|---|
arraystringmessage number for given message or all messages as arraykey() : int
| inherited_from | \Zend\Mail\Storage\AbstractStorage::key() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::key() |
intid of current positionnext()
| inherited_from | \Zend\Mail\Storage\AbstractStorage::next() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::next() |
noop() : bool
| inherited_from | \Zend\Mail\Storage\Maildir::noop() |
|---|
boolalways return trueoffsetExists(int $id) : bool
| inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetExists() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::offsetExists() |
int
booloffsetGet(int $id) : \Zend\Mail\Storage\Message
| inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetGet() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::offsetGet() |
int
\Zend\Mail\Storage\Messagemessage objectoffsetSet(mixed $id, mixed $value)
| inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetSet() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::offsetSet() |
mixed
mixed
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
offsetUnset(int $id) : bool
| inherited_from | \Zend\Mail\Storage\AbstractStorage::offsetUnset() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::offsetUnset() |
int
boolsuccessremoveMessage($id)
| inherited_from | \Zend\Mail\Storage\Maildir::removeMessage() |
|---|
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
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() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::rewind() |
seek(int $pos)
| inherited_from | \Zend\Mail\Storage\AbstractStorage::seek() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::seek() |
int
\Zend\Mail\Storage\Exception\OutOfBoundsException |
|---|
selectFolder(\Zend\Mail\Storage\Folder | string $globalName)
valid() : bool
| inherited_from | \Zend\Mail\Storage\AbstractStorage::valid() |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::valid() |
bool_buildFolderTree()
Result is save in \Zend\Mail\Storage\Folder instances with the root in $this->rootFolder. $parentFolder and $parentGlobalName are only used internally for recursion.
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
_getFileData(int $id, string | null $field) : string | array
Also checks if message is valid
| inherited_from | \Zend\Mail\Storage\Maildir::_getFileData() |
|---|
intmessage number
stringnullwanted field
\Zend\Mail\Storage\Exception\InvalidArgumentException |
|---|
stringarraywanted field or all fields as array_getMaildirFiles(resource $dh, string $dirname, array $defaultFlags)
| inherited_from | \Zend\Mail\Storage\Maildir::_getMaildirFiles() |
|---|
resourcedir handle used for search
stringdirname of dir in $dh
arraydefault flags for given dir
_isMaildir(string $dirname) : bool
| inherited_from | \Zend\Mail\Storage\Maildir::_isMaildir() |
|---|
stringname of dir
booldir is valid maildir_openMaildir(string $dirname)
| inherited_from | \Zend\Mail\Storage\Maildir::_openMaildir() |
|---|
stringname of maildir
\Zend\Mail\Storage\Exception\RuntimeException |
|---|
$currentFolder : string
$delim : string
$files : array
| inherited_from | \Zend\Mail\Storage\Maildir::$$files |
|---|
$has : array
| inherited_from | \Zend\Mail\Storage\AbstractStorage::$$has |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::$$has |
$iterationMax : null | int
| inherited_from | \Zend\Mail\Storage\AbstractStorage::$$iterationMax |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::$$iterationMax |
$iterationPos : int
| inherited_from | \Zend\Mail\Storage\AbstractStorage::$$iterationPos |
|---|---|
| inherited_from | \Zend\Mail\Storage\Maildir::$$iterationPos |
$knownFlags : array
This list has to be in alphabetical order for setFlags()
| inherited_from | \Zend\Mail\Storage\Maildir::$$knownFlags |
|---|
$rootdir : string