PHP 클래스 phpbb\notification\type\post

상속: extends phpbb\notification\type\base
파일 보기 프로젝트 열기: phpbb/phpbb 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$notification_option Notification option data (for outputting to the user)

보호된 프로퍼티들

프로퍼티 타입 설명
$inherit_read_status boolean Inherit notification read status from post.
$language_key string Language key used to output the text

공개 메소드들

메소드 설명
add_responders ( mixed $post ) Add responders to the notification
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
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_id ( array $post ) Get the id of the item
get_item_parent_id ( array $post ) Get the id of the parent
get_redirect_url ( ) {inheritDoc}
get_reference ( ) : string Get the HTML formatted reference 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 ( ) Is available
pre_create_insert_array ( array $post, array $notify_users ) : array Pre create insert array function This allows you to perform certain actions, like run a query and load data, before create_insert_array() is run. The data returned from this function will be sent to create_insert_array().
trim_user_ary ( array $users ) : array Trim the user array passed down to 3 users if the array contains more than 4 users.
users_to_query ( ) : array Users needed to query before this notification can be displayed

메소드 상세

add_responders() 공개 메소드

Add responders to the notification
public add_responders ( mixed $post )
$post mixed

create_insert_array() 공개 메소드

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()
리턴 array Array of data ready to be inserted into the database

find_users_for_notification() 공개 메소드

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

get_avatar() 공개 메소드

Get the user's avatar
public get_avatar ( )

get_email_template() 공개 메소드

Get email template
public get_email_template ( ) : string | boolean
리턴 string | boolean

get_email_template_variables() 공개 메소드

Get email template variables

get_item_id() 공개 정적인 메소드

Get the id of the item
public static get_item_id ( array $post )
$post array The data from the post

get_item_parent_id() 공개 정적인 메소드

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

get_redirect_url() 공개 메소드

{inheritDoc}
public get_redirect_url ( )

get_reference() 공개 메소드

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

get_title() 공개 메소드

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

get_type() 공개 메소드

Get notification type name
public get_type ( ) : string
리턴 string

get_url() 공개 메소드

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

is_available() 공개 메소드

Is available
public is_available ( )

pre_create_insert_array() 공개 메소드

Pre create insert array function This allows you to perform certain actions, like run a query and load data, before create_insert_array() is run. The data returned from this function will be sent to create_insert_array().
public pre_create_insert_array ( array $post, array $notify_users ) : array
$post array Post data from submit_post
$notify_users array Notify users list Formated from find_users_for_notification()
리턴 array Whatever you want to send to create_insert_array().

trim_user_ary() 공개 메소드

Trim the user array passed down to 3 users if the array contains more than 4 users.
public trim_user_ary ( array $users ) : array
$users array Array of users
리턴 array Trimmed array of user_ids

users_to_query() 공개 메소드

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

프로퍼티 상세

$inherit_read_status 보호되어 있는 프로퍼티

Inherit notification read status from post.
protected bool $inherit_read_status
리턴 boolean

$language_key 보호되어 있는 프로퍼티

Language key used to output the text
protected string $language_key
리턴 string

$notification_option 공개적으로 정적으로 프로퍼티

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