$_params
$_params : array
Hash containing connection parameters.
Provides the SQL backend driver for the Shout application.
Copyright 2009-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 $userdetails) : TRUE
Save a user 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 | $userdetails | Phone numbers, PIN, options, etc to be saved |
on success, PEAR::Error object on error
saveDevice(string $account, string $devid, array $details) : TRUE
Save a device (add or edit) 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 | The account in which this device is valid |
string | $devid | Device ID to save |
array | $details | Array of device details |
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.