[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/phpbb/notification/type/ -> approve_post.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 146 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

approve_post:: (8 methods):
  get_type()
  is_available()
  find_users_for_notification()
  pre_create_insert_array()
  create_insert_array()
  get_insert_array()
  get_email_template()
  get_redirect_url()


Class: approve_post  - X-Ref

Post approved notifications class
This class handles notifications for posts when they are approved (to their authors)

get_type()   X-Ref
Get notification type name

return: string

is_available()   X-Ref
Is available


find_users_for_notification($post, $options = array()   X-Ref
Find the users who want to receive notifications

return: array
param: array $post Data from submit_post
param: array $options Options for finding users for notification

pre_create_insert_array($post, $notify_users)   X-Ref
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().

return: array Whatever you want to send to create_insert_array().
param: array $post Post data from submit_post
param: array $notify_users Notify users list

create_insert_array($post, $pre_create_data = array()   X-Ref
{@inheritdoc}


get_insert_array()   X-Ref
{@inheritdoc}


get_email_template()   X-Ref
Get email template

return: string|bool

get_redirect_url()   X-Ref
{inheritDoc}




Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1