Definition at line 31 of file Abstract.php.
◆ __construct()
Create instance with parameters
- Parameters
-
array | $params | mail reader specific parameters |
- Exceptions
-
◆ __destruct()
◆ __get()
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
- Parameters
-
- Returns
- bool supported or not
- Exceptions
-
- See also
- Zend_Mail_Storage_Exception
Definition at line 75 of file Abstract.php.
77 if (strpos($var,
'has') === 0) {
78 $var = strtolower(substr($var, 3));
79 return isset($this->_has[$var]) ? $this->_has[$var] :
null;
85 #require_once 'Zend/Mail/Storage/Exception.php';
◆ close()
Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
- Returns
- null
◆ count()
◆ countMessages()
Count messages messages in current box/folder
- Returns
- int number of messages
- Exceptions
-
◆ current()
◆ getCapabilities()
Get a full list of features supported by the specific mail lib and the server
- Returns
- array list of features as array(featurename => true|false[|null])
Definition at line 95 of file Abstract.php.
◆ getMessage()
◆ getNumberByUniqueId()
getNumberByUniqueId |
( |
|
$id | ) |
|
|
abstract |
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()
- Parameters
-
- Returns
- int message number
- Exceptions
-
◆ getRawContent()
getRawContent |
( |
|
$id, |
|
|
|
$part = null |
|
) |
| |
|
abstract |
Get raw content of message or part
- Parameters
-
int | $id | number of message |
null | array | string | $part | path to part or null for messsage content |
- Returns
- string raw content
◆ getRawHeader()
getRawHeader |
( |
|
$id, |
|
|
|
$part = null , |
|
|
|
$topLines = 0 |
|
) |
| |
|
abstract |
Get raw header of message or part
- Parameters
-
int | $id | number of message |
null | array | string | $part | path to part or null for messsage header |
int | $topLines | include this many lines with header (after an empty line) |
- Returns
- string raw header
◆ getSize()
Get a list of messages with number and size
- Parameters
-
- Returns
- int|array size of given message of list with all messages as array(num => size)
◆ getUniqueId()
getUniqueId |
( |
|
$id = null | ) |
|
|
abstract |
get unique id for one or all messages
if storage does not support unique ids it's the same as the message number
- Parameters
-
int | null | $id | message number |
- Returns
- array|string message number for given message or all messages as array
- Exceptions
-
◆ key()
Iterator::key()
- Returns
- int id of current position
Definition at line 316 of file Abstract.php.
◆ next()
◆ noop()
Keep the resource alive.
- Returns
- null
◆ offsetExists()
ArrayAccess::offsetExists()
- Parameters
-
- Returns
- boolean
Definition at line 230 of file Abstract.php.
◆ offsetGet()
◆ offsetSet()
offsetSet |
( |
|
$id, |
|
|
|
$value |
|
) |
| |
◆ offsetUnset()
ArrayAccess::offsetUnset()
- Parameters
-
- Returns
- boolean success
Definition at line 278 of file Abstract.php.
◆ removeMessage()
delete a message from current box/folder
- Returns
- null
◆ rewind()
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.
- Returns
- void
Definition at line 293 of file Abstract.php.
296 $this->_iterationPos = 1;
◆ seek()
SeekableIterator::seek()
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 354 of file Abstract.php.
356 if ($this->_iterationMax ===
null) {
360 if (
$pos > $this->_iterationMax) {
361 throw new OutOfBoundsException(
'this position does not exist');
363 $this->_iterationPos =
$pos;
◆ valid()
Iterator::valid()
- Returns
- boolean
Definition at line 338 of file Abstract.php.
340 if ($this->_iterationMax ===
null) {
◆ $_has
Initial value:= array('uniqueid' => true,
'delete' => false,
'create' => false,
'top' => false,
'fetchPart' => true,
'flags' => false)
Definition at line 37 of file Abstract.php.
◆ $_iterationMax
◆ $_iterationPos
◆ $_messageClass
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Mail/Storage/Abstract.php