$_params
$_params : array
A hash containing any parameters for the current storage driver.
Hylax_Storage_sql Class
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
$_attributes : \Hylax_SQL_Attributes
factory(string $driver, array $params = array()) : \Hylax_Storage
Attempts to return a concrete Hylax_Storage instance based on $driver.
string | $driver | The type of concrete Hylax_Storage subclass to return. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Hylax_Storage instance, or false on error.
singleton(string $driver, array $params = array()) : mixed
Attempts to return a reference to a concrete Hylax_Storage instance based on $driver.
It will only create a new instance if no Hylax_Storage instance with the same parameters currently exists.
This should be used if multiple storage sources are required.
This method must be invoked as: $var = &Hylax_Storage::singleton()
string | $driver | The type of concrete Hylax_Storage subclass to return. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The created concrete Hylax_Storage instance, or false on error.
saveMessage(integer $gateway_id, string $message_text, string $message_params, string $message_batch_id = null) : mixed
Saves a message to the backend.
integer | $gateway_id | The id of the gateway used to send this message. |
string | $message_text | The text of the message. |
string | $message_params | Any send params used for this message. |
string | $message_batch_id | If batch sending is used, the batch id of this message. |
True on success or PEAR Error on failure.
saveSend(integer $message_id, string $remote_id, string $recipient, string $error) : mixed
Saves an individual send to the backend. This will be one instance of a message being sent to a recipient.
integer | $message_id | The message id. |
string | $remote_id | The text of the message. |
string | $recipient | Any send params used for this |
string | $error | Any send params used for this |
The send id on success or PEAR Error on failure.