[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/monitor/classes/ -> notification_task.php (summary)

This file defines an adhoc task to send notifications.

Copyright: 2014 onwards Ankit Agarwal <ankit.agrr@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 125 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

notification_task:: (3 methods):
  execute()
  generate_message()
  replace_placeholders()


Class: notification_task  - X-Ref

Adhock class, used to send notifications to users.

execute()   X-Ref
Send out messages.


generate_message($subscriptionid, \stdClass $eventobj)   X-Ref
Generates the message object for a give subscription and event.

param: int $subscriptionid Subscription instance
param: \stdClass $eventobj Event data
return: false|\stdClass message object

replace_placeholders($template, subscription $subscription, $eventobj, $context)   X-Ref
Replace place holders in the template with respective content.

param: string $template Message template.
param: subscription $subscription subscription instance
param: \stdclass $eventobj Event data
param: \context $context context object
return: mixed final template string.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1