Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
array $_has = 'array'class capabilities with default values
Detailsnull|int $_iterationMax = 'null'maximum iteration position (= message count)
Detailsint $_iterationPos = '0'current iteration position
Detailsstring $_messageClass = 'Zend_Mail_Message'used message class, change it in an extened class to extend the returned message class
Details__construct(
array $params
)
:
Create instance with parameters
Details__destruct(
)
:
Destructor calls close() and therefore closes the resource.
Details__get(
string $var
)
:
boolGetter for has-properties. 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
Detailsclose(
)
:
nullClose resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
Detailscount(
)
:
intCountable::count()
DetailscountMessages(
)
:
intCount messages messages in current box/folder
Detailscurrent(
)
:
Zend_Mail_MessageIterator::current()
DetailsgetCapabilities(
)
:
arrayGet a full list of features supported by the specific mail lib and the server
DetailsgetMessage(
$id $id
)
:
Zend_Mail_MessageGet a message with headers and body
DetailsgetNumberByUniqueId(
string $id
)
:
intget a message number from a unique id
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()
DetailsgetRawContent(
int $id, null|array|string $part
=
null
)
:
stringGet raw content of message or part
DetailsgetRawHeader(
int $id, null|array|string $part
=
null, int $topLines
=
0
)
:
stringGet raw header of message or part
DetailsgetSize(
int $id
=
0
)
:
int|arrayGet a list of messages with number and size
DetailsgetUniqueId(
int|null $id
=
null
)
:
array|stringget unique id for one or all messages
if storage does not support unique ids it's the same as the message number
Detailskey(
)
:
intIterator::key()
Detailsnext(
)
:
voidIterator::next()
Detailsnoop(
)
:
nullKeep the resource alive.
DetailsoffsetExists(
int $id
)
:
booleanArrayAccess::offsetExists()
DetailsoffsetGet(
int $id
)
:
Zend_Mail_MessageArrayAccess::offsetGet()
DetailsoffsetSet(
id $id, mixed $value
)
:
voidArrayAccess::offsetSet()
DetailsoffsetUnset(
int $id
)
:
booleanArrayAccess::offsetUnset()
DetailsremoveMessage(
$id
)
:
nulldelete a message from current box/folder
Detailsrewind(
)
:
voidIterator::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.
Detailsseek(
int $pos
)
:
voidSeekableIterator::seek()
Detailsvalid(
)
:
booleanIterator::valid()
Details