$_params
$_params :
Driver parameters
Folks Notification Class.
Copyright Obala d.o.o. (www.obala.si)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
notifyAll(string $subject, string $body, array $attachments = array(), mixed $user = null) : true
Notify user in all available drivers
string | $subject | Subject of message |
string | $body | Body of message |
array | $attachments | Attached files |
mixed | $user | User or array of users to send notification to |
on succes, PEAR_Error on failure
notifyAllFriends(string $subject, string $body, array $attachments = array(), string $user = null) : true
Notify user's friends in all available drivers
string | $subject | Subject of message |
string | $body | Body of message |
array | $attachments | Attached files |
string | $user | User to send notifications to |
on succes, PEAR_Error on failure
singleton(string $driver, array $params = null)
Singleton for driver object
string | $driver | The type of the concrete Folks_Notification subclass to return. The class name is based on the storage Notification ($driver). The code is dynamically included. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
notify(mixed $user, string $subject, string $body, array $attachments = array()) : true
Notify user
mixed | $user | User or array of users to send notification to |
string | $subject | Subject of message |
string | $body | Body of message |
array | $attachments | Attached files |
on succes, PEAR_Error on failure
notifyFriends(mixed $user, string $subject, string $body, array $attachments = array()) : true
Notify user
mixed | $user | User or array of users to send notification to |
string | $subject | Subject of message |
string | $body | Body of message |
array | $attachments | Attached files |
on succes, PEAR_Error on failure
factory(string $driver, array $params = null) : \Folks_Notification
Attempts to return a concrete Folks_Notification instance based on $driver.
string | $driver | The type of the concrete Folks_Notification subclass to return. The class name is based on the storage driver ($driver). The code is dynamically included. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Folks_Notification instance, or false on an error.