copy_notifications_to_new_child
delete_all_notifications_on
disable_notifications
dispatch_notification
enable_notifications
get_pts
get_web_notifications
notification_display_script
notification_locked_down
notification_mark_all_read_script
notification_poller_script
notification_script
notifications_enabled
notifications_setting
notifications_ui
notifications_ui_advanced
pt_to_xml
web_notification_to_xml
A_FROM_SYSTEM_PRIVILEGED
A_FROM_SYSTEM_UNPRIVILEGED
A_TO_ANYONE_ENABLED
NOTIFICATION_POLL_FREQUENCY
NOTIFICATION_POLL_SAFETY_LAG_SECS
copy_notifications_to_new_child(\ID_TEXT $notification_code, \ID_TEXT $id, \ID_TEXT $child_id)
| package | core_notifications |
|---|
\ID_TEXTParent category type
\ID_TEXTParent category ID
\ID_TEXTChild category ID
delete_all_notifications_on(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category)
| package | core_notifications |
|---|
\ID_TEXTThe notification code
\?SHORT_TEXTThe category within the notification code (null: none)
disable_notifications(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category, \?MEMBER $member_id = null)
| package | core_notifications |
|---|
\ID_TEXTThe notification code to use
\?SHORT_TEXTThe category within the notification code (null: none)
\?MEMBERThe member being de-signed up (null: current member)
dispatch_notification(\ID_TEXT $notification_code, \?SHORT_TEXT $code_category, \SHORT_TEXT $subject, \LONG_TEXT $message, \?array $to_member_ids= null, \?integer $from_member_id= null, integer $priority= 3, boolean $store_in_staff_messaging_system= false, boolean $no_cc= false, \?ID_TEXT $no_notify_for__notification_code= null, \?SHORT_TEXT $no_notify_for__code_category= null, string $subject_prefix= '', string $subject_suffix= '', string $body_prefix= '', string $body_suffix= '', \?array $attachments= null, boolean $use_real_from= false)
| package | core_notifications |
|---|---|
| range | 1 5 |
\ID_TEXTThe notification code to use
\?SHORT_TEXTThe category within the notification code (null: none)
\SHORT_TEXTMessage subject (in Comcode)
\LONG_TEXTMessage body (in Comcode)
\?arrayList of enabled members to limit sending to (null: everyone)
\?integerThe member ID doing the sending. Either a MEMBER or a negative number (e.g. A_FROM_SYSTEM_UNPRIVILEGED) (null: current member)
integerThe message priority (1=urgent, 3=normal, 5=low)
booleanWhether to create a topic for discussion (ignored if the staff_messaging addon not installed)
booleanWhether to NOT CC to the CC address
\?ID_TEXTDO NOT send notifications to: The notification code (null: no restriction)
\?SHORT_TEXTDO NOT send notifications to: The category within the notification code (null: none / no restriction)
stringOnly relevant if $store_in_staff_messaging_system is true: subject prefix for storage
stringOnly relevant if $store_in_staff_messaging_system is true: subject suffix for storage
stringOnly relevant if $store_in_staff_messaging_system is true: body prefix for storage
stringOnly relevant if $store_in_staff_messaging_system is true: body suffix for storage
\?arrayA list of attachments (each attachment being a map, path=>filename) (null: none)
booleanWhether we will make a "reply to" direct -- we only do this if we're allowed to disclose email addresses for this particular notification type (i.e. if it's a direct contact)
enable_notifications(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category, \?MEMBER $member_id= null, \?integer $setting= null)
| package | core_notifications |
|---|
\ID_TEXTThe notification code to use
\?SHORT_TEXTThe category within the notification code (null: none)
\?MEMBERThe member being signed up (null: current member)
\?integerSetting to use (null: default)
get_pts(\?integer $max= null, integer $start= 0) : array
| package | core_notifications |
|---|
\?integerNumber of PTs to show (null: no limit)
integerStart offset
arrayA pair: Templating, Max rowsget_web_notifications(\?integer $max= null, integer $start= 0) : array
| package | core_notifications |
|---|
\?integerNumber of notifications to show (null: no limit)
integerStart offset
arrayA pair: Templating, Max rowsnotification_locked_down(\ID_TEXT $notification_code) : boolean
| package | core_notifications |
|---|
\ID_TEXTThe notification code to check
booleanWhether it isnotifications_enabled(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category, \?MEMBER $member_id = null) : boolean
| package | core_notifications |
|---|
\ID_TEXTThe notification code to check
\?SHORT_TEXTThe category within the notification code (null: none)
\?MEMBERThe member being de-signed up (null: current member)
booleanWhether they arenotifications_setting(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category, \?MEMBER $member_id = null) : integer
| package | core_notifications |
|---|
\ID_TEXTThe notification code to check
\?SHORT_TEXTThe category within the notification code (null: none)
\?MEMBERThe member being de-signed up (null: current member)
integerHow they arenotifications_ui(\MEMBER $member_id_of) : \Tempcode
notifications_ui_advanced(\ID_TEXT $notification_code, \?Tempcode $enable_message= null, \?Tempcode $disable_message= null) : \Tempcode
| package | core_notifications |
|---|
\ID_TEXTThe notification code to work with
\?TempcodeSpecial message to output if we have toggled to enable (null: use standard)
\?TempcodeSpecial message to output if we have toggled to disable (null: use standard)
\TempcodeUIpt_to_xml(array $row) : string
web_notification_to_xml(array $row) : string
Base class for notification hooks. Provides default implementations for all methods that provide full access to everyone, and interact with enabled table.
« More »Derived abstract base class of notification hooks that provides only staff access.
« More »NOTIFICATION_POLL_FREQUENCY = intval(get_option('notification_poll_frequency'))
| package | core_notifications |
|---|