$_params
$_params : array
A hash containing any parameters for the current driver.
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (BSD). If you did not did not receive this file, see http://www.horde.org/licenses/bsd.
getDomainMaxUsers(string $domain_name) : integer
Returns the maximum number of users allowed for a given domain.
string | $domain_name | The name of the domain for which to return the maximum users. |
The maximum number of allowed users.
isBelowMaxUsers(string $domain) : boolean
Checks if the given domain is below the maximum allowed users.
string | $domain | The domain name to check. |
True if the domain does not have a maximum limit (0) or current number of users is below the maximum number allowed.
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.
string | $domain | The name of the domain for which to fetch the users. |
The available users and their stored information.
getUserStatus(array $user) : array
Does a series of checks for a given user to determine the status.
array | $user | The user's details in an array as returned by the getUser() function. |
if an error occurs looking up the user status.
Either an array of error messages found during the checks or an array with a single element stating that the user is ready.
getAddresses(string $domain, string $type = 'all', string $key = 'user_name', integer $direction) : array
Returns a list of all users, aliases, or groups and forwards for a domain.
string | $domain | Domain on which to search. |
string | $type | Only return a specific type. One of 'all', 'user', 'alias', 'forward', or 'group'. |
string | $key | Sort list by this key. |
integer | $direction | Sort direction. |
Account information for this domain.
getAddressInfo(string $address, string $type = 'all') : array
Returns an array of information related to the address passed in.
This method may be overridden by the backend driver if there is a more efficient way to do this than a linear array search.
string | $address | Address for which information will be pulled. |
string | $type | Address type to request. One of 'all', 'user', 'alias', 'forward' or 'group'. |
if address of that type doesn't exist.
Array of user information on success or empty array if the user does not exist.
saveAlias(array $info)
Saves or creates alias records for a user.
array | $info | The info used to store the information. Required fields are:
|
saveForward(array $info)
Saves or creates forward records for a given user.
array | $info | The info used to store the information. Required fields are:
|
factory(string $driver = null, array $params = null) : \Vilma_Driver
Attempts to return a concrete Vilma_Driver instance based on $driver.
string | $driver | The type of concrete Vilma_Driver subclass to return. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Vilma_Driver instance.
_getAddresses(string $domain, string $type = 'all') : array
Returns a list of all users, aliases, or groups and forwards for a domain.
string | $domain | Domain on which to search. |
string | $type | Only return a specific type. One of 'all', 'user', 'alias','forward', or 'group'. |
Account information for this domain.