PHP Класс Horde_Imap_Client_Mailbox_List, horde

Copyright 2004-2012 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Michael Slusarz ([email protected])
Наследование: implements Countable, implements IteratorAggregate
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_delimiter string The delimiter character to use.
$_mboxes array Mailbox list.
$_sortinbox boolean Should we sort with INBOX at the front of the list?

Открытые методы

Метод Описание
__construct ( mixed $mboxes ) Constructor.
count ( )
getIterator ( )
sort ( array $opts = [] ) : array Sort the list of mailboxes.

Защищенные методы

Метод Описание
_mboxCompare ( string $a, string $b ) : integer Hierarchical folder sorting function (used with usort()).

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( mixed $mboxes )
$mboxes mixed A mailbox or list of mailboxes.

_mboxCompare() закрытый защищенный Метод

Hierarchical folder sorting function (used with usort()).
final protected _mboxCompare ( string $a, string $b ) : integer
$a string Comparison item 1.
$b string Comparison item 2.
Результат integer See usort().

count() публичный Метод

public count ( )

getIterator() публичный Метод

public getIterator ( )

sort() публичный Метод

Sort the list of mailboxes.
public sort ( array $opts = [] ) : array
$opts array Options: - delimiter: (string) The delimiter to use. DEFAULT: '.' - inbox: (boolean) Always put INBOX at the head of the list? DEFAULT: Yes - noupdate: (boolean) Do not update the object's mailbox list? DEFAULT: true
Результат array List of sorted mailboxes (index association is kept).

Описание свойств

$_delimiter защищенное свойство

The delimiter character to use.
protected string $_delimiter
Результат string

$_mboxes защищенное свойство

Mailbox list.
protected array $_mboxes
Результат array

$_sortinbox защищенное свойство

Should we sort with INBOX at the front of the list?
protected bool $_sortinbox
Результат boolean