Create instance with parameters
Zend_Mail_Abstract
__construct
(array $params)
-
array
$params: mail reader specific parameters
Redefined in descendants as:
Destructor calls close() and therefore closes the resource.
void
__destruct
()
Redefined in descendants as:
Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
void
close
()
Redefined in descendants as:
-
Zend_Mail_Imap::close()
: Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
-
Zend_Mail_Maildir::close()
: Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
-
Zend_Mail_Mbox::close()
: Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
-
Zend_Mail_Pop3::close()
: Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
Countable::count()
int
count
()
Implementation of:
- Countable::count
Count messages with a flag or all messages in current box/folder Flags might not be supported by all mail libs (exceptions is thrown)
int
countMessages
([int $flags = null])
-
int
$flags: filter by flags
Redefined in descendants as:
Iterator::current()
Implementation of:
- SeekableIterator::current
Get a full list of features supported by the specific mail lib and the server
array
getCapabilities
()
Get a message with only header and $bodyLines lines of body
-
int
$id: number of message
-
int
$bodyLines: also retrieve this number of body lines
Redefined in descendants as:
Get a message with headers and body
-
$id
$id: int number of message
Redefined in descendants as:
Get a list of messages with number and size
int|array
getSize
(int $id)
-
int
$id: number of message
Redefined in descendants as:
Iterator::key()
int
key
()
Implementation of:
- SeekableIterator::key
Iterator::next()
void
next
()
Implementation of:
- SeekableIterator::next
Keep the resource alive.
void
noop
()
Redefined in descendants as:
ArrayAccess::offsetExists()
boolean
offsetExists
(int $id)
Implementation of:
- ArrayAccess::offsetExists
ArrayAccess::offsetGet()
Implementation of:
- ArrayAccess::offsetGet
ArrayAccess::offsetSet()
void
offsetSet
(id $id, mixed $value)
Implementation of:
- ArrayAccess::offsetSet
ArrayAccess::offsetUnset()
boolean
offsetUnset
(int $id)
Implementation of:
- ArrayAccess::offsetUnset
delete a message from current box/folder
void
removeMessage
( $id)
Redefined in descendants as:
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.
void
rewind
()
Implementation of:
- SeekableIterator::rewind
SeekableIterator::seek()
void
seek
(int $pos)
Implementation of:
- SeekableIterator::seek
Iterator::valid()
boolean
valid
()
Implementation of:
- SeekableIterator::valid
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
bool
__get
(string $var)
-
string
$var: property name
Redefined in descendants as:
-
Zend_Mail_Imap::__get()
: Special handling for hasTop. The headers of the first message is retrieved if Top wasn't needed/tried yet.
-
Zend_Mail_Pop3::__get()
: Special handling for hasTop. The headers of the first message is retrieved if Top wasn't needed/tried yet.