PHP Класс IMP_Remote, horde

Автор: Michael Slusarz ([email protected])
Наследование: implements ArrayAccess, implements IteratorAggregate
Показать файл Открыть проект

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

Свойство Тип Описание
$_accounts array The list of remote accounts.

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

Метод Описание
__construct ( ) Constructor.
getIterator ( )
getMailboxById ( string $id ) : string Return the IMAP mailbox name for the given remote mailbox identifier.
getRemoteById ( string $id ) : mixed Return the remote account for a valid remote mailbox/identifier.
isRemoteMbox ( string $id ) : boolean Is the given mailbox a remote mailbox?
label ( string $id ) : string Return the label for the given mailbox.
offsetExists ( string $offset ) : boolean Does the account ID exist?
offsetGet ( string $offset ) : array Retrieve information on a single remote account.
offsetSet ( string $offset, $value ) Add a remote account.
offsetUnset ( string $offset ) Delete a remote account.

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

Метод Описание
_save ( ) Save the remote accounts list to the prefs backend.
_strip ( string $id ) : string Strip the identifying label from a mailbox ID.

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

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

Constructor.
public __construct ( )

_save() защищенный Метод

Save the remote accounts list to the prefs backend.
protected _save ( )

_strip() защищенный Метод

Strip the identifying label from a mailbox ID.
protected _strip ( string $id ) : string
$id string The mailbox query ID.
Результат string The remote ID, with any IMP specific identifying information stripped off.

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

public getIterator ( )

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

Return the IMAP mailbox name for the given remote mailbox identifier.
public getMailboxById ( string $id ) : string
$id string The mailbox name/identifier.
Результат string The IMAP mailbox name.

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

Return the remote account for a valid remote mailbox/identifier.
public getRemoteById ( string $id ) : mixed
$id string The mailbox name/identifier.
Результат mixed Either a IMP_Remote_Account object or null.

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

Is the given mailbox a remote mailbox?
public isRemoteMbox ( string $id ) : boolean
$id string The mailbox name/identifier.
Результат boolean Whether the given mailbox name is a remote mailbox.

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

Return the label for the given mailbox.
public label ( string $id ) : string
$id string The mailbox name/identifier.
Результат string The mailbox label.

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

Does the account ID exist?
public offsetExists ( string $offset ) : boolean
$offset string Account ID.
Результат boolean True if the account ID exists.

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

Retrieve information on a single remote account.
public offsetGet ( string $offset ) : array
$offset string Account ID.
Результат array The configuration array, or false if ID not found.

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

Add a remote account.
public offsetSet ( string $offset, $value )
$offset string Account ID.

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

Delete a remote account.
public offsetUnset ( string $offset )
$offset string Account ID.

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

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

The list of remote accounts.
protected array $_accounts
Результат array