PHP Class phpbb\notification\type\report_pm

Inheritance: extends pm
Datei anzeigen Open project: phpbb/phpbb

Public Properties

Property Type Description
$notification_option Notification option data (for outputting to the user)

Protected Properties

Property Type Description
$language_key string Language key used to output the text
$permission Permission to check for (in find_users_for_notification)

Public Methods

Method Description
create_insert_array ( array $post, array $pre_create_data = [] ) : array Function for preparing the data for insertion in an SQL query (The service handles insertion)
find_users_for_notification ( array $post, array $options = [] ) : array Find the users who want to receive notifications (copied from post_in_queue)
get_avatar ( ) Get the user's avatar
get_email_template ( ) : string | boolean Get email template
get_email_template_variables ( ) : array Get email template variables
get_item_parent_id ( array $pm ) Get the id of the parent
get_reason ( ) : string Get the reason for the notification
get_reference ( ) : string Get the HTML formatted reference of the notification
get_style_class ( ) : string Get the CSS style class of the notification
get_title ( ) : string Get the HTML formatted title of this notification
get_type ( ) : string Get notification type name
get_url ( ) : string Get the url to this item
is_available ( ) : boolean Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
users_to_query ( ) : array Users needed to query before this notification can be displayed

Method Details

create_insert_array() public method

Function for preparing the data for insertion in an SQL query (The service handles insertion)
public create_insert_array ( array $post, array $pre_create_data = [] ) : array
$post array Data from submit_post
$pre_create_data array Data from pre_create_insert_array()
return array Array of data ready to be inserted into the database

find_users_for_notification() public method

Find the users who want to receive notifications (copied from post_in_queue)
public find_users_for_notification ( array $post, array $options = [] ) : array
$post array Data from the post
$options array Options for finding users for notification
return array

get_avatar() public method

Get the user's avatar
public get_avatar ( )

get_email_template() public method

Get email template
public get_email_template ( ) : string | boolean
return string | boolean

get_email_template_variables() public method

Get email template variables

get_item_parent_id() public static method

Get the id of the parent
public static get_item_parent_id ( array $pm )
$pm array The data from the pm

get_reason() public method

Get the reason for the notification
public get_reason ( ) : string
return string

get_reference() public method

Get the HTML formatted reference of the notification
public get_reference ( ) : string
return string

get_style_class() public method

Get the CSS style class of the notification
public get_style_class ( ) : string
return string

get_title() public method

Get the HTML formatted title of this notification
public get_title ( ) : string
return string

get_type() public method

Get notification type name
public get_type ( ) : string
return string

get_url() public method

Get the url to this item
public get_url ( ) : string
return string URL

is_available() public method

Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options)
public is_available ( ) : boolean
return boolean True/False whether or not this is available to the user

users_to_query() public method

Users needed to query before this notification can be displayed
public users_to_query ( ) : array
return array Array of user_ids

Property Details

$language_key protected_oe property

Language key used to output the text
protected string $language_key
return string

$notification_option public_oe static_oe property

Notification option data (for outputting to the user)
public static $notification_option

$permission protected_oe property

Permission to check for (in find_users_for_notification)
protected $permission