PHP 클래스 IMP_Remote, horde

저자: Michael Slusarz ([email protected])
상속: implements ArrayAccess, implements IteratorAggregate
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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