diff options
| author | Igor Wiedler <igor@wiedler.ch> | 2012-04-09 14:34:35 +0200 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2012-04-09 14:34:35 +0200 |
| commit | 3896ee953fbdb45d0485c0b5dcdfca47409a22ed (patch) | |
| tree | 86cee60150ff75d33332a60140230a4aaa780c97 /phpBB/includes/cron/task/base.php | |
| parent | aa0c995ed9cdafa2dfaca23b54d5b4cf6323f794 (diff) | |
| download | forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.gz forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.bz2 forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.xz forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.zip | |
[feature/dic] Give all cron tasks a name, change some manager usage
PHPBB3-10739
Diffstat (limited to 'phpBB/includes/cron/task/base.php')
| -rw-r--r-- | phpBB/includes/cron/task/base.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/includes/cron/task/base.php b/phpBB/includes/cron/task/base.php index c05fb9a87c..94a2f267b4 100644 --- a/phpBB/includes/cron/task/base.php +++ b/phpBB/includes/cron/task/base.php @@ -28,6 +28,28 @@ if (!defined('IN_PHPBB')) */ abstract class phpbb_cron_task_base implements phpbb_cron_task { + private $name; + + /** + * Returns the name of the task. + * + * @return string Name of wrapped task. + */ + public function get_name() + { + return $this->name; + } + + /** + * Sets the name of the task. + * + * @param string $name The task name + */ + public function set_name($name) + { + $this->name = $name; + } + /** * Returns whether this cron task can run, given current board configuration. * |
