Свойство | Тип | Описание | |
---|---|---|---|
$_indices | array | The indices list. |
Метод | Описание | |
---|---|---|
__construct ( ) | Constructor. | |
__toString ( ) : string | String representation of the object. | |
add ( ) | Add indices. | |
copy ( string $targetMbox, string $action, array $opts = [] ) : boolean | Copies or moves a list of messages to a new mailbox. | |
count ( ) : integer | Index count. | |
current ( ) | * Iterator methods. | |
delete ( array $opts = [] ) : integer | boolean | Deletes a list of messages. | |
flag ( array $add = [], array $remove = [], array $opts = [] ) : boolean | Sets or clears a given flag for a list of messages. | |
getSingle ( $all = false ) : array | Returns mailbox/UID information for the first index. | |
indices ( ) : array | Return a copy of the indices array. | |
key ( ) | ||
mdnCheck ( Horde_Mime_Headers $headers, boolean $confirmed = false ) : boolean | Check if we need to send a MDN, and send if needed. | |
next ( ) | ||
offsetExists ( $offset ) | ||
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
rewind ( ) | ||
stripPart ( string $partid = null ) : IMP_Indices | Strips one or all MIME parts out of a message. | |
toArray ( ) : array | Returns an array containing compressed UID values. | |
valid ( ) |
Метод | Описание | |
---|---|---|
_fromSequenceString ( string $str ) : array | Parse an IMAP message sequence string into a list of indices. | |
_toSequenceString ( array $in ) : string | Create an IMAP message sequence string from a list of indices. |
public __toString ( ) : string | ||
Результат | string | String representation (IMAP sequence string). |
protected _fromSequenceString ( string $str ) : array | ||
$str | string | The IMAP message sequence string. |
Результат | array | An array of indices. If string contains mailbox info, return value will be an array of arrays, with keys as mailbox names and values as IDs. Otherwise, return the list of IDs. |
protected _toSequenceString ( array $in ) : string | ||
$in | array | An array of indices. |
Результат | string | The message sequence string. |
1 argument: ----------- + Array Either: KEYS: Mailbox names VALUES: UIDs -or- Horde_Imap_Client_Ids object -or- VALUES: IMAP sequence strings + IMP_Compose object + IMP_Contents object + IMP_Indices object + String Format: IMAP sequence string 2 arguments: ------------ 1st argument: Mailbox name -or- IMP_Mailbox object 2nd argument: Either a single UID, array of UIDs, or a Horde_Imap_Client_Ids object.
public add ( ) |
public copy ( string $targetMbox, string $action, array $opts = [] ) : boolean | ||
$targetMbox | string | The mailbox to move/copy messages to (UTF-8). |
$action | string | Either 'copy' or 'move'. |
$opts | array | Additional options:
- create: (boolean) Should the target mailbox be created? DEFAULT: false |
Результат | boolean | True if successful, false if not. |
public delete ( array $opts = [] ) : integer | boolean | ||
$opts | array | Additional options:
- keeplog: (boolean) Should any history information of the message be kept? DEFAULT: false - nuke: (boolean) Override user preferences and nuke (i.e. permanently delete) the messages instead? DEFAULT: false |
Результат | integer | boolean | The number of messages deleted if successful, false if not successful. |
public flag ( array $add = [], array $remove = [], array $opts = [] ) : boolean | ||
$add | array | A list of IMAP flag(s) to add. |
$remove | array | A list of IMAP flag(s) to remove. |
$opts | array | Additional options:
- silent: (boolean) Don't output notification messages. DEFAULT: false - unchangedsince: (array) The unchangedsince value to pass to the IMAP store command. Keys are mailbox names, values are the unchangedsince values to use for that mailbox. DEFAULT: array() |
Результат | boolean | True if successful, false if not. |