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_TEXT
Parent category type
\ID_TEXT
Parent category ID
\ID_TEXT
Child category ID
delete_all_notifications_on(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category)
package | core_notifications |
---|
\ID_TEXT
The notification code
\?SHORT_TEXT
The 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_TEXT
The notification code to use
\?SHORT_TEXT
The category within the notification code (null: none)
\?MEMBER
The 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_TEXT
The notification code to use
\?SHORT_TEXT
The category within the notification code (null: none)
\SHORT_TEXT
Message subject (in Comcode)
\LONG_TEXT
Message body (in Comcode)
\?array
List of enabled members to limit sending to (null: everyone)
\?integer
The member ID doing the sending. Either a MEMBER or a negative number (e.g. A_FROM_SYSTEM_UNPRIVILEGED) (null: current member)
integer
The message priority (1=urgent, 3=normal, 5=low)
boolean
Whether to create a topic for discussion (ignored if the staff_messaging addon not installed)
boolean
Whether to NOT CC to the CC address
\?ID_TEXT
DO NOT send notifications to: The notification code (null: no restriction)
\?SHORT_TEXT
DO NOT send notifications to: The category within the notification code (null: none / no restriction)
string
Only relevant if $store_in_staff_messaging_system is true: subject prefix for storage
string
Only relevant if $store_in_staff_messaging_system is true: subject suffix for storage
string
Only relevant if $store_in_staff_messaging_system is true: body prefix for storage
string
Only relevant if $store_in_staff_messaging_system is true: body suffix for storage
\?array
A list of attachments (each attachment being a map, path=>filename) (null: none)
boolean
Whether 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_TEXT
The notification code to use
\?SHORT_TEXT
The category within the notification code (null: none)
\?MEMBER
The member being signed up (null: current member)
\?integer
Setting to use (null: default)
get_pts(\?integer $max= null
, integer $start= 0
) : array
package | core_notifications |
---|
\?integer
Number of PTs to show (null: no limit)
integer
Start offset
array
A pair: Templating, Max rowsget_web_notifications(\?integer $max= null
, integer $start= 0
) : array
package | core_notifications |
---|
\?integer
Number of notifications to show (null: no limit)
integer
Start offset
array
A pair: Templating, Max rowsnotification_locked_down(\ID_TEXT $notification_code) : boolean
package | core_notifications |
---|
\ID_TEXT
The notification code to check
boolean
Whether it isnotifications_enabled(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category, \?MEMBER $member_id = null
) : boolean
package | core_notifications |
---|
\ID_TEXT
The notification code to check
\?SHORT_TEXT
The category within the notification code (null: none)
\?MEMBER
The member being de-signed up (null: current member)
boolean
Whether they arenotifications_setting(\ID_TEXT $notification_code, \?SHORT_TEXT $notification_category, \?MEMBER $member_id = null
) : integer
package | core_notifications |
---|
\ID_TEXT
The notification code to check
\?SHORT_TEXT
The category within the notification code (null: none)
\?MEMBER
The member being de-signed up (null: current member)
integer
How 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_TEXT
The notification code to work with
\?Tempcode
Special message to output if we have toggled to enable (null: use standard)
\?Tempcode
Special message to output if we have toggled to disable (null: use standard)
\Tempcode
UIpt_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 |
---|