Function Notification_dispatcher->__construct
Definitions
sources/notifications.php
- Construct notification dispatcher.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$notification_code | ID_TEXT | required parameter | N/A | N/A | The notification code to use |
$code_category | ?SHORT_TEXT | required parameter | N/A | N/A | The category within the notification code (null: none). If it is to have $create_ticket, it must have the format <type>_<id> |
$subject | SHORT_TEXT | required parameter | N/A | N/A | Message subject (in Comcode) |
$message | LONG_TEXT | required parameter | N/A | N/A | Message body (in Comcode) |
$to_member_ids | ?array | required parameter | N/A | N/A | List of enabled members to limit sending to (null: everyone) |
$from_member_id | ?integer | required parameter | N/A | N/A | The member ID doing the sending. Either a MEMBER or a negative number (e.g. A_FROM_SYSTEM_UNPRIVILEGED) (null: current member) |
$notification_hook | ?string | required parameter | N/A | N/A | Notification hook $notification_code exists in (null: auto-detect) |