$_component
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
Class for notifying users of different events. Usage is reasonably straightforward:
// Populate the message
$message = [];
// Add content for long notification formats (email and RSS) $message['title'] = 'Something has happened'; $message['content'] = 'Somebody did something...';
// Add content for short notification formats (XMPP, SMS, Growl) $message['abstract'] = 'Somebody did something';
// Send it org_openpsa_notifications::notify('net.example.component:some_action', $recipient_guid, $message);
If you want users to take some action related to the message, it is a good idea to include URLs in the message.
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
_merge_notification_prefences(string $component, string $action, \midcom_db_person $recipient) : Array
Find out how a person prefers to get the event notification
string | $component | Component name |
string | $action | Event name |
\midcom_db_person | $recipient | The receiving person |
options supported by user