Свойство | Тип | Описание | |
---|---|---|---|
$changed | boolean | Has the object data changed? |
Свойство | Тип | Описание | |
---|---|---|---|
$_flaghook | boolean | Does the msglist_flags hook exist? | |
$_flags | array | The list of internal flags. | |
$_userflags | array | The list of user flags. |
Метод | Описание | |
---|---|---|
__construct ( ) | Constructor. | |
addFlag ( string $label ) : string | Add a user-defined IMAP flag. | |
changed ( array $flags, boolean $add ) : array | Returns a list of flags that have changed due to IMAP flag changes. | |
getList ( array $opts = [] ) : array | Return the raw list of flags. | |
offsetExists ( $offset ) | ||
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
parse ( array $opts = [] ) : array | Parse a list of flag information. | |
serialize ( ) | ||
unserialize ( $data ) | ||
updateFlag ( string $key, string $type, string $data ) | Updates flag properties. |
Метод | Описание | |
---|---|---|
_save ( ) | Save the flag list to the prefs backend. |
public getList ( array $opts = [] ) : array | ||
$opts | array | Additional options: - imap: (boolean) If true, only return IMAP flags that can be set by the user. DEFAULT: false - mailbox: (string) A real (not virtual) IMAP mailbox. If set, will determine what flags are available in the mailbox. DEFAULT: '' (no mailbox check) |
Результат | array | An array of IMP_Flag_Base elements. |
public parse ( array $opts = [] ) : array | ||
$opts | array | Options: - flags: (array) IMAP flag info. A lowercase list of flags returned by the IMAP server. - headers: (Horde_Mime_Headers) Determines message information from a headers object. - runhook: (array) Run the msglist_flags hook? If yes, input is return from IMP_Mailbox_List#getMailboxArray(). - personal: (mixed) Personal message info. Either a list of To addresses (Horde_Mail_Rfc822_List object) or the identity that matched the address list. - structure: TODO |
Результат | array | A list of IMP_Flag_Base objects. |
protected bool $_flaghook | ||
Результат | boolean |