[feature/system-cron] Added missing visibility keywords.

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev 2010-08-22 21:49:12 -04:00
parent 652372bdb1
commit 8c8211d15a
2 changed files with 7 additions and 7 deletions

View file

@ -24,7 +24,7 @@ class cron_lock
{ {
private $cron_id; private $cron_id;
function lock() public function lock()
{ {
global $config, $db; global $config, $db;
@ -68,7 +68,7 @@ class cron_lock
* *
* Attempting to release a cron lock that is already released is harmless. * Attempting to release a cron lock that is already released is harmless.
*/ */
function unlock() public function unlock()
{ {
global $db; global $db;

View file

@ -123,7 +123,7 @@ class cron_manager
* *
* If several tasks are ready, any one of them could be returned. * 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) foreach ($this->tasks as $task)
{ {
@ -138,7 +138,7 @@ class cron_manager
/** /**
* Finds all tasks that are ready to run. * Finds all tasks that are ready to run.
*/ */
function find_all_ready_tasks() public function find_all_ready_tasks()
{ {
$tasks = array(); $tasks = array();
foreach ($this->tasks as $task) foreach ($this->tasks as $task)
@ -156,7 +156,7 @@ class cron_manager
* *
* Web runner uses this method to resolve names to tasks. * Web runner uses this method to resolve names to tasks.
*/ */
function find_task($name) public function find_task($name)
{ {
foreach ($this->tasks as $task) foreach ($this->tasks as $task)
{ {
@ -175,7 +175,7 @@ class cron_manager
* $args will be passed to the task class's constructor. * $args will be passed to the task class's constructor.
* The constructed task is wrapped with cron task wrapper before being returned. * 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); $task = $this->find_task($name);
if ($task) if ($task)
@ -189,7 +189,7 @@ class cron_manager
return $task; return $task;
} }
function generate_generic_task_code($cron_type) public function generate_generic_task_code($cron_type)
{ {
global $phpbb_root_path, $phpEx; global $phpbb_root_path, $phpEx;
return '<img src="' . $url . '" width="1" height="1" alt="cron" />'; return '<img src="' . $url . '" width="1" height="1" alt="cron" />';