Свойство | Type | Description | |
---|---|---|---|
$_backends | array | Cached backend configuration. | |
$_changed | boolean | Has this object changed? | |
$_config | IMP_Imap_Config | Backend config. | |
$_id | string | Object identifier. | |
$_ob | Horde_Imap_Client_Base | The IMAP client object. | |
$_temp | array | Temporary data cache (destroyed at end of request). |
Méthode | Description | |
---|---|---|
__call ( string $method, array $params ) : mixed | All other calls to this class are routed to the underlying Horde_Imap_Client_Base object. | |
__construct ( string $id ) | Constructor. | |
__get ( $key ) | ||
__toString ( ) | ||
access ( integer $right ) : boolean | Checks access rights for a server. | |
accessCompose ( integer $right, integer $data ) : boolean | Checks compose access rights for a server. | |
createBaseImapObject ( string $username, string $password, string $skey ) : Horde_Imap_Client_Base | Create the base Horde_Imap_Client object (from an entry in backends.php). | |
createImapObject ( array $config, boolean $imap = true ) : Horde_Imap_Client_Base | Create a Horde_Imap_Client object. | |
doPostLoginTasks ( ) | Perform post-login tasks. | |
getCacheId ( string $mailbox, array $addl = [] ) : string | Return the cache ID for this mailbox. | |
getNamespace ( string $mailbox, boolean $personal = false ) : mixed | Get namespace info for a full mailbox path. | |
getSlices ( string $mbox, Horde_Imap_Client_Ids $ids, integer $size = 5242880 ) : array | Returns a list of messages, split into slices based on the total message size. | |
isImap ( ) : boolean | Determine if this is a connection to an IMAP server. | |
isPop3 ( ) : boolean | Determine if this is a connection to an IMAP server. | |
loadServerConfig ( string $server = null ) : mixed | Loads the IMP server configuration from backends.php. | |
parseCacheId ( string $id ) : array | Parses the cache ID for this mailbox. | |
serialize ( ) | ||
unserialize ( $data ) | ||
updateFetchIgnore ( ) | Update the list of mailboxes to ignore when caching FETCH data in the IMAP client object. |
Méthode | Description | |
---|---|---|
_copy ( ) | Handle copy() calls that hit multiple servers. | |
_getPerm ( string $perm ) : string | Get the full permission name for a permission. | |
_renameMailbox ( ) | Handle copy() calls. This call may hit multiple servers, so need to handle separately from other IMAP calls. | |
_search ( string $mailbox, Horde_Imap_Client_Search_Query $query = null, array $opts = [] ) : array | Prepares an IMAP search query. Needed because certain configuration parameters may need to be dynamically altered before passed to the Imap_Client object. | |
_status ( $args ) | Handle status() calls. This call may hit multiple servers. |
public __construct ( string $id ) | ||
$id | string | Object identifier. |
protected _renameMailbox ( ) |
protected _status ( $args ) |
public accessCompose ( integer $right, integer $data ) : boolean | ||
$right | integer | Access right. |
$data | integer | Data required to check the rights: - ACCESS_COMPOSE_BODYSIZE The size of the body data. - ACCESS_COMPOSE_RECIPIENTS - ACCESS_COMPOSE_TIMELIMIT The number of e-mail recipients. |
Résultat | boolean | Is the access allowed? |
public createBaseImapObject ( string $username, string $password, string $skey ) : Horde_Imap_Client_Base | ||
$username | string | The username to authenticate with. |
$password | string | The password to authenticate with. |
$skey | string | Create a new object using this server key. |
Résultat | Horde_Imap_Client_Base | Client object. |
public createImapObject ( array $config, boolean $imap = true ) : Horde_Imap_Client_Base | ||
$config | array | The IMAP configuration. |
$imap | boolean | True if IMAP connection, false if POP3. |
Résultat | Horde_Imap_Client_Base | Client object. |
public getNamespace ( string $mailbox, boolean $personal = false ) : mixed | ||
$mailbox | string | The mailbox path. (self:NS_DEFAULT will return the default personal namespace.) |
$personal | boolean | If true, will return empty namespace only if it is a personal namespace. |
Résultat | mixed | The namespace info for the mailbox path or null if the path doesn't exist. |
public static loadServerConfig ( string $server = null ) : mixed | ||
$server | string | Returns this labeled entry only. |
Résultat | mixed | If $server is set return this entry; else, return the entire servers array. Returns false on error. |
public parseCacheId ( string $id ) : array | ||
$id | string | Cache ID generated by getCacheId(). |
Résultat | array | Two element array: - date: (integer) Date information (day of year), if embedded in cache ID. - token: (string) Mailbox sync token. |
public updateFetchIgnore ( ) |
protected static array $_backends | ||
Résultat | array |
protected IMP_Imap_Config $_config | ||
Résultat | IMP_Imap_Config |
protected Horde_Imap_Client_Base $_ob | ||
Résultat | Horde_Imap_Client_Base |
protected array $_temp | ||
Résultat | array |