Property | Type | Description | |
---|---|---|---|
$_db | Horde_Db |
Method | Description | |
---|---|---|
__construct ( array $params ) | Constructor. | |
deleteUser ( integer $user_id ) | Deletes a user. | |
deleteVirtual ( integer $virtual_id ) | Deletes a virtual email. | |
getDomain ( integer $domain_id ) : array | Returns the specified domain information from the backend. | |
getDomainByName ( $domain_name ) : array | Given a domain name returns the information from the backend. | |
getDomainNumUsers ( string $domain_name ) : integer | Returns the current number of users for a domain. | |
getDomains ( ) : array | Returns the list of domains from the backend. | |
getUser ( integer $user_id ) : array | Returns the user information for a given user id. | |
getUsers ( string $domain = null ) : array | Returns all available users, if a domain name is passed then limit the list of users only to those users. | |
getVirtual ( integer $virtual_id ) : array | Returns information for a virtual id. | |
getVirtuals ( string $filter ) : array | Returns available virtual emails. | |
saveVirtual ( array $info, string $domain ) | Saves virtual email address to the backend. |
Method | Description | |
---|---|---|
_deleteDomain ( integer $domain_id ) | Deletes a domain. | |
_getAddresses ( string $domain, string $type = 'all' ) : array | Returns a list of all users, aliases, or groups and forwards for a domain. | |
_getTableField ( $table, $field ) : string | Returns the real name of a field from a specific table for SQL statements. | |
_getTableFields ( $table ) : string | Returns the list of fields from a specific table for SQL statements. | |
_initialize ( ) | Initializes this backend, connects to the SQL database. | |
_prepareRecord ( $table, $record ) : array | ||
_saveDomain ( array $info ) | Saves a domain with the provided information. | |
_saveUser ( array $info ) : string | Saves a user to the backend. |
public __construct ( array $params ) | ||
$params | array | Any parameters needed for this driver. |
protected _deleteDomain ( integer $domain_id ) | ||
$domain_id | integer | The id of the domain to delete. |
protected _getTableField ( $table, $field ) : string | ||
return | string |
protected _getTableFields ( $table ) : string | ||
return | string |
protected _initialize ( ) |
protected _saveDomain ( array $info ) | ||
$info | array | Array of details to save the domain. |
public deleteUser ( integer $user_id ) | ||
$user_id | integer | The id of the user to delete. |
public deleteVirtual ( integer $virtual_id ) | ||
$virtual_id | integer | The id of the virtual email to delete. |
public getDomainByName ( $domain_name ) : array | ||
return | array | The domain's information in an array. |
public getDomainNumUsers ( string $domain_name ) : integer | ||
$domain_name | string | The name of the domain for which to get the current number of users. |
return | integer | The current number of users. |
public getDomains ( ) : array | ||
return | array | All the domains and their data in an array. |
public getVirtual ( integer $virtual_id ) : array | ||
$virtual_id | integer | The virtual id for which to return information. |
return | array | The virtual email information. |
public getVirtuals ( string $filter ) : array | ||
$filter | string | If passed a domain then return all virtual emails for the domain, otherwise if passed a user name return all virtual emails for that user. |
return | array | The available virtual emails. |
public saveVirtual ( array $info, string $domain ) | ||
$info | array | The virtual email data. |
$domain | string | The name of the domain for this virtual email. |