1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/dic] Make cron task attributes protected, one per line

PHPBB3-10739
This commit is contained in:
Igor Wiedler 2012-08-25 16:51:19 +02:00
parent 4feb9aa8d7
commit 4f0f63ae8f
10 changed files with 31 additions and 11 deletions

View File

@ -32,7 +32,8 @@ class phpbb_cron_manager
*/
protected $tasks = array();
protected $phpbb_root_path, $php_ext;
protected $phpbb_root_path;
protected $php_ext;
/**
* Constructor. Loads all available tasks.

View File

@ -26,7 +26,10 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_prune_all_forums extends phpbb_cron_task_base
{
private $phpbb_root_path, $php_ext, $config, $db;
protected $phpbb_root_path;
protected $php_ext;
protected $config;
protected $db;
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config, dbal $db)
{

View File

@ -26,8 +26,12 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_prune_forum extends phpbb_cron_task_base implements phpbb_cron_task_parametrized
{
private $phpbb_root_path, $php_ext, $config, $db;
private $forum_data;
protected $phpbb_root_path;
protected $php_ext;
protected $config;
protected $db;
protected $forum_data;
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config, dbal $db)
{

View File

@ -22,7 +22,9 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_queue extends phpbb_cron_task_base
{
private $phpbb_root_path, $php_ext, $config;
protected $phpbb_root_path;
protected $php_ext
protected $config;
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{

View File

@ -22,7 +22,8 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_cache extends phpbb_cron_task_base
{
private $config, $cache;
protected $config;
protected $cache;
public function __construct(phpbb_config $config, phpbb_cache_driver_interface $cache)
{

View File

@ -22,7 +22,9 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_database extends phpbb_cron_task_base
{
private $phpbb_root_path, $php_ext, $config;
protected $phpbb_root_path;
protected $php_ext
protected $config;
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{

View File

@ -24,7 +24,9 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base
{
private $phpbb_root_path, $php_ext, $config;
protected $phpbb_root_path;
protected $php_ext;
protected $config;
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{

View File

@ -22,7 +22,8 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_sessions extends phpbb_cron_task_base
{
private $config, $user;
protected $config;
protected $user;
public function __construct(phpbb_config $config, phpbb_user $user)
{

View File

@ -24,7 +24,9 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_warnings extends phpbb_cron_task_base
{
private $phpbb_root_path, $php_ext, $config;
protected $phpbb_root_path;
protected $php_ext;
protected $config;
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{

View File

@ -23,7 +23,9 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_wrapper
{
private $task, $phpbb_root_path, $php_ext;
protected $task;
protected $phpbb_root_path;
protected $php_ext;
/**
* Constructor.