1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/11103] Use phpBB Container to load types/methods

PHPBB3-11103
This commit is contained in:
Nathaniel Guse
2012-11-09 07:40:08 -06:00
parent 03e348cf58
commit f09ee16252
25 changed files with 505 additions and 75 deletions

View File

@@ -23,6 +23,16 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_notification_method_email extends phpbb_notification_method_base
{
/**
* Get notification method name
*
* @return string
*/
public function get_type()
{
return 'email';
}
/**
* 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,6 +21,13 @@ if (!defined('IN_PHPBB'))
*/
interface phpbb_notification_method_interface
{
/**
* Get notification method name
*
* @return string
*/
public function get_type();
/**
* Is this method available for the user?
* This is checked on the notifications options

View File

@@ -23,6 +23,16 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_notification_method_jabber extends phpbb_notification_method_email
{
/**
* Get notification method name
*
* @return string
*/
public function get_type()
{
return 'jabber';
}
/**
* Notify method (since jabber gets sent through the same messenger, we let the jabber class inherit from this to reduce code duplication)
*