1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

[ticket/11103] Rename classes

phpbb_notifications_service -> phpbb_notification_manager
phpbb_notifications_ -> phpbb_notification_

PHPBB3-11103
This commit is contained in:
Nathan Guse 2012-10-04 13:39:54 -05:00
parent 1aa5c005cb
commit 37e2473605
20 changed files with 36 additions and 36 deletions

View File

@ -90,7 +90,7 @@ services:
- @cache.driver - @cache.driver
notifications: notifications:
class: phpbb_notifications_service class: phpbb_notification_manager
arguments: arguments:
- @container - @container

View File

@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
* Base notifications method class * Base notifications method class
* @package notifications * @package notifications
*/ */
abstract class phpbb_notifications_method_base implements phpbb_notifications_method_interface abstract class phpbb_notification_method_base implements phpbb_notification_method_interface
{ {
protected $phpbb_container; protected $phpbb_container;
protected $service; protected $service;
@ -75,9 +75,9 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
/** /**
* Add a notification to the queue * Add a notification to the queue
* *
* @param phpbb_notifications_type_interface $notification * @param phpbb_notification_type_interface $notification
*/ */
public function add_to_queue(phpbb_notifications_type_interface $notification) public function add_to_queue(phpbb_notification_type_interface $notification)
{ {
$this->queue[] = $notification; $this->queue[] = $notification;
} }

View File

@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_method_email extends phpbb_notifications_method_base class phpbb_notification_method_email extends phpbb_notification_method_base
{ {
/** /**
* Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication) * Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication)

View File

@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
* Base notifications method interface * Base notifications method interface
* @package notifications * @package notifications
*/ */
interface phpbb_notifications_method_interface interface phpbb_notification_method_interface
{ {
public function is_available(); public function is_available();

View File

@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_method_jabber extends phpbb_notifications_method_email class phpbb_notification_method_jabber extends phpbb_notification_method_email
{ {
/** /**
* Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication) * Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication)

View File

@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
* Notifications service class * Notifications service class
* @package notifications * @package notifications
*/ */
class phpbb_notifications_service class phpbb_notification_manager
{ {
protected $phpbb_container; protected $phpbb_container;
protected $db; protected $db;

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_approve_post extends phpbb_notifications_type_post class phpbb_notification_type_approve_post extends phpbb_notification_type_post
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -52,7 +52,7 @@ class phpbb_notifications_type_approve_post extends phpbb_notifications_type_pos
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_approve_topic extends phpbb_notifications_type_topic class phpbb_notification_type_approve_topic extends phpbb_notification_type_topic
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -52,7 +52,7 @@ class phpbb_notifications_type_approve_topic extends phpbb_notifications_type_to
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
* Base notifications class * Base notifications class
* @package notifications * @package notifications
*/ */
abstract class phpbb_notifications_type_base implements phpbb_notifications_type_interface abstract class phpbb_notification_type_base implements phpbb_notification_type_interface
{ {
protected $phpbb_container; protected $phpbb_container;
protected $service; protected $service;

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_bookmark extends phpbb_notifications_type_post class phpbb_notification_type_bookmark extends phpbb_notification_type_post
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -41,7 +41,7 @@ class phpbb_notifications_type_bookmark extends phpbb_notifications_type_post
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_disapprove_post extends phpbb_notifications_type_approve_post class phpbb_notification_type_disapprove_post extends phpbb_notification_type_approve_post
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -52,7 +52,7 @@ class phpbb_notifications_type_disapprove_post extends phpbb_notifications_type_
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_disapprove_topic extends phpbb_notifications_type_approve_topic class phpbb_notification_type_disapprove_topic extends phpbb_notification_type_approve_topic
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -52,7 +52,7 @@ class phpbb_notifications_type_disapprove_topic extends phpbb_notifications_type
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
* Base notifications interface * Base notifications interface
* @package notifications * @package notifications
*/ */
interface phpbb_notifications_type_interface interface phpbb_notification_type_interface
{ {
public static function get_item_type(); public static function get_item_type();

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_pm extends phpbb_notifications_type_base class phpbb_notification_type_pm extends phpbb_notification_type_base
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -34,7 +34,7 @@ class phpbb_notifications_type_pm extends phpbb_notifications_type_base
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_post extends phpbb_notifications_type_base class phpbb_notification_type_post extends phpbb_notification_type_base
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -41,7 +41,7 @@ class phpbb_notifications_type_post extends phpbb_notifications_type_base
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_post_in_queue extends phpbb_notifications_type_post class phpbb_notification_type_post_in_queue extends phpbb_notification_type_post
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -52,7 +52,7 @@ class phpbb_notifications_type_post_in_queue extends phpbb_notifications_type_po
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_quote extends phpbb_notifications_type_post class phpbb_notification_type_quote extends phpbb_notification_type_post
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -48,7 +48,7 @@ class phpbb_notifications_type_quote extends phpbb_notifications_type_post
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_topic extends phpbb_notifications_type_base class phpbb_notification_type_topic extends phpbb_notification_type_base
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -41,7 +41,7 @@ class phpbb_notifications_type_topic extends phpbb_notifications_type_base
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
* *
* @package notifications * @package notifications
*/ */
class phpbb_notifications_type_topic_in_queue extends phpbb_notifications_type_topic class phpbb_notification_type_topic_in_queue extends phpbb_notification_type_topic
{ {
/** /**
* Email template to use to send notifications * Email template to use to send notifications
@ -62,7 +62,7 @@ class phpbb_notifications_type_topic_in_queue extends phpbb_notifications_type_t
/** /**
* Get the type of notification this is * Get the type of notification this is
* phpbb_notifications_type_ * phpbb_notification_type_
*/ */
public static function get_item_type() public static function get_item_type()
{ {

View File

@ -85,11 +85,11 @@ class ucp_notifications
* Output all the notification types to the template * Output all the notification types to the template
* *
* @param string $block * @param string $block
* @param phpbb_notifications_service $phpbb_notifications * @param phpbb_notification_manager $phpbb_notifications
* @param phpbb_template $template * @param phpbb_template $template
* @param phpbb_user $user * @param phpbb_user $user
*/ */
public function output_notification_types($block = 'notification_types', phpbb_notifications_service $phpbb_notifications, phpbb_template $template, phpbb_user $user) public function output_notification_types($block = 'notification_types', phpbb_notification_manager $phpbb_notifications, phpbb_template $template, phpbb_user $user)
{ {
$notification_methods = $phpbb_notifications->get_subscription_methods(); $notification_methods = $phpbb_notifications->get_subscription_methods();
$subscriptions = $phpbb_notifications->get_subscriptions(false, true); $subscriptions = $phpbb_notifications->get_subscriptions(false, true);
@ -121,11 +121,11 @@ class ucp_notifications
* Output all the notification methods to the template * Output all the notification methods to the template
* *
* @param string $block * @param string $block
* @param phpbb_notifications_service $phpbb_notifications * @param phpbb_notification_manager $phpbb_notifications
* @param phpbb_template $template * @param phpbb_template $template
* @param phpbb_user $user * @param phpbb_user $user
*/ */
public function output_notification_methods($block = 'notification_methods', phpbb_notifications_service $phpbb_notifications, phpbb_template $template, phpbb_user $user) public function output_notification_methods($block = 'notification_methods', phpbb_notification_manager $phpbb_notifications, phpbb_template $template, phpbb_user $user)
{ {
$notification_methods = $phpbb_notifications->get_subscription_methods(); $notification_methods = $phpbb_notifications->get_subscription_methods();