aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notification/method/base.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-01-15 12:10:07 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2013-01-15 12:10:07 -0600
commit07282a30ae077825ea81a4e26839ac0473dc97b7 (patch)
tree9599fa8903e9c39498dc6bb06e0346f484f68932 /phpBB/includes/notification/method/base.php
parent51e0f002eeaf2d55a63feee66ccb37d689f46f55 (diff)
downloadforums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar
forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar.gz
forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar.bz2
forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar.xz
forums-07282a30ae077825ea81a4e26839ac0473dc97b7.zip
[ticket/11103] Fix some various issues, better comments
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notification/method/base.php')
-rw-r--r--phpBB/includes/notification/method/base.php40
1 files changed, 29 insertions, 11 deletions
diff --git a/phpBB/includes/notification/method/base.php b/phpBB/includes/notification/method/base.php
index f37e7e7845..c4c0a64ae0 100644
--- a/phpBB/includes/notification/method/base.php
+++ b/phpBB/includes/notification/method/base.php
@@ -22,37 +22,37 @@ if (!defined('IN_PHPBB'))
abstract class phpbb_notification_method_base implements phpbb_notification_method_interface
{
/** @var phpbb_notification_manager */
- protected $notification_manager = null;
+ protected $notification_manager;
/** @var phpbb_user_loader */
- protected $user_loader = null;
+ protected $user_loader;
/** @var phpbb_db_driver */
- protected $db = null;
+ protected $db;
/** @var phpbb_cache_service */
- protected $cache = null;
+ protected $cache;
/** @var phpbb_template */
- protected $template = null;
+ protected $template;
/** @var phpbb_extension_manager */
- protected $extension_manager = null;
+ protected $extension_manager;
/** @var phpbb_user */
- protected $user = null;
+ protected $user;
/** @var phpbb_auth */
- protected $auth = null;
+ protected $auth;
/** @var phpbb_config */
- protected $config = null;
+ protected $config;
/** @var string */
- protected $phpbb_root_path = null;
+ protected $phpbb_root_path;
/** @var string */
- protected $php_ext = null;
+ protected $php_ext;
/**
* Queue of messages to be sent
@@ -61,6 +61,19 @@ abstract class phpbb_notification_method_base implements phpbb_notification_meth
*/
protected $queue = array();
+ /**
+ * Notification Method Base Constructor
+ *
+ * @param phpbb_user_loader $user_loader
+ * @param phpbb_db_driver $db
+ * @param phpbb_cache_driver_interface $cache
+ * @param mixed $user
+ * @param phpbb_auth $auth
+ * @param phpbb_config $config
+ * @param mixed $phpbb_root_path
+ * @param mixed $php_ext
+ * @return phpbb_notification_method_base
+ */
public function __construct(phpbb_user_loader $user_loader, phpbb_db_driver $db, phpbb_cache_driver_interface $cache, $user, phpbb_auth $auth, phpbb_config $config, $phpbb_root_path, $php_ext)
{
$this->user_loader = $user_loader;
@@ -73,6 +86,11 @@ abstract class phpbb_notification_method_base implements phpbb_notification_meth
$this->php_ext = $php_ext;
}
+ /**
+ * Set notification manager (required)
+ *
+ * @param phpbb_notification_manager $notification_manager
+ */
public function set_notification_manager(phpbb_notification_manager $notification_manager)
{
$this->notification_manager = $notification_manager;