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
null|int $_iterationMax = 'null'
maximum iteration position (= message count)
int $_iterationPos = '0'
current iteration position
string $_messageClass = 'Zend_Mail_Message'
used message class, change it in an extened class to extend the returned message class
__construct(
array $params
)
:
Create instance with parameters
__destruct(
)
:
Destructor calls close() and therefore closes the resource.
__get(
string $var
)
:
bool
Getter 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
close(
)
:
null
Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
count(
)
:
int
Countable::count()
countMessages(
)
:
int
Count messages messages in current box/folder
current(
)
:
Zend_Mail_Message
Iterator::current()
getCapabilities(
)
:
array
Get a full list of features supported by the specific mail lib and the server
getMessage(
$id $id
)
:
Zend_Mail_Message
Get a message with headers and body
getNumberByUniqueId(
string $id
)
:
int
get 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()
getRawContent(
int $id, null|array|string $part
=
null
)
:
string
Get raw content of message or part
getRawHeader(
int $id, null|array|string $part
=
null, int $topLines
=
0
)
:
string
Get raw header of message or part
getSize(
int $id
=
0
)
:
int|array
Get a list of messages with number and size
getUniqueId(
int|null $id
=
null
)
:
array|string
get unique id for one or all messages
if storage does not support unique ids it's the same as the message number
key(
)
:
int
Iterator::key()
next(
)
:
void
Iterator::next()
noop(
)
:
null
Keep the resource alive.
offsetExists(
int $id
)
:
boolean
ArrayAccess::offsetExists()
offsetGet(
int $id
)
:
Zend_Mail_Message
ArrayAccess::offsetGet()
offsetSet(
id $id, mixed $value
)
:
void
ArrayAccess::offsetSet()
offsetUnset(
int $id
)
:
boolean
ArrayAccess::offsetUnset()
removeMessage(
$id
)
:
null
delete a message from current box/folder
rewind(
)
:
void
Iterator::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
)
:
void
SeekableIterator::seek()
valid(
)
:
boolean
Iterator::valid()