diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-08-22 21:49:12 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:51 -0500 |
| commit | 8c8211d15ae6b3378450637e4a2cfe6732bad110 (patch) | |
| tree | 3067bfd1d7db3a785a354b3f0c14ea754dc2b8c5 | |
| parent | 652372bdb1f32a16e6747ad90965dcd25fec06f9 (diff) | |
| download | forums-8c8211d15ae6b3378450637e4a2cfe6732bad110.tar forums-8c8211d15ae6b3378450637e4a2cfe6732bad110.tar.gz forums-8c8211d15ae6b3378450637e4a2cfe6732bad110.tar.bz2 forums-8c8211d15ae6b3378450637e4a2cfe6732bad110.tar.xz forums-8c8211d15ae6b3378450637e4a2cfe6732bad110.zip | |
[feature/system-cron] Added missing visibility keywords.
PHPBB3-9596
| -rw-r--r-- | phpBB/includes/cron/cron_lock.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/cron/cron_manager.php | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/includes/cron/cron_lock.php b/phpBB/includes/cron/cron_lock.php index 1af3724709..64b82128ce 100644 --- a/phpBB/includes/cron/cron_lock.php +++ b/phpBB/includes/cron/cron_lock.php @@ -24,7 +24,7 @@ class cron_lock { private $cron_id; - function lock() + public function lock() { global $config, $db; @@ -68,7 +68,7 @@ class cron_lock * * Attempting to release a cron lock that is already released is harmless. */ - function unlock() + public function unlock() { global $db; diff --git a/phpBB/includes/cron/cron_manager.php b/phpBB/includes/cron/cron_manager.php index a97f2bde4e..0c395ce3f0 100644 --- a/phpBB/includes/cron/cron_manager.php +++ b/phpBB/includes/cron/cron_manager.php @@ -123,7 +123,7 @@ class cron_manager * * If several tasks are ready, any one of them could be returned. */ - function find_one_ready_task() + public function find_one_ready_task() { foreach ($this->tasks as $task) { @@ -138,7 +138,7 @@ class cron_manager /** * Finds all tasks that are ready to run. */ - function find_all_ready_tasks() + public function find_all_ready_tasks() { $tasks = array(); foreach ($this->tasks as $task) @@ -156,7 +156,7 @@ class cron_manager * * Web runner uses this method to resolve names to tasks. */ - function find_task($name) + public function find_task($name) { foreach ($this->tasks as $task) { @@ -175,7 +175,7 @@ class cron_manager * $args will be passed to the task class's constructor. * The constructed task is wrapped with cron task wrapper before being returned. */ - function instantiate_task($name, $args) + public function instantiate_task($name, $args) { $task = $this->find_task($name); if ($task) @@ -189,7 +189,7 @@ class cron_manager return $task; } - function generate_generic_task_code($cron_type) + public function generate_generic_task_code($cron_type) { global $phpbb_root_path, $phpEx; return '<img src="' . $url . '" width="1" height="1" alt="cron" />'; |
