$_params
$_params : array
Hash containing connection parameters.
Provides the LDAP backend driver for the Shout application.
Copyright 2005-2010 Alkaloid Networks LLC (http://projects.alkaloid.net)
See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.opensource.org/licenses/bsd-license.php.
checkAccountType(string $account, string $type) : boolean
For the given account and type, make sure the account has the appropriate properties, that it is effectively of that "type"
string | $account | the account to check type for |
string | $type | the type to verify the account is of |
true of the account is of type, false if not
saveExtension(string $account, string $extension, array $details) : TRUE
Save an extension to the LDAP tree
This method is intended to be overridden by a child class. However it also implements some basic checks, so a typical backend will still call this method via parent::
string | $account | Account to which the user should be added |
string | $extension | Extension to be saved |
array | $details | Phone numbers, PIN, options, etc to be saved |
on success, PEAR::Error object on error
saveDevice(string $account, $devid, array $details) : TRUE
Save a device to the backend.
This method is intended to be overridden by a child class. However it also implements some basic checks, so a typical backend will still call this method via parent::
string | $account | Account to which the user should be added |
$devid | ||
array | $details | Phone numbers, PIN, options, etc to be saved |
on success, PEAR::Error object on error
factory( $class, string $driver = null, array $params = null) : mixed
Attempts to return a concrete Shout_Driver instance based on $driver.
$class | ||
string | $driver | The type of the concrete Shout_Driver subclass to return. The class name is based on the storage driver ($driver). The code is dynamically included. |
array | $params | (optional) A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Shout_Driver instance, or false on an error.
addDestination(string $account, string $extension, string $type, string $destination) : boolean
Add a new destination valid for this extension.
A destination is either a telephone number or a VoIP device.
string | $account | Account for the extension |
string | $extension | Extension for which to return destinations |
string | $type | Destination type ("device" or "number") |
string | $destination | The destination itself |
True on success.