mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/system-cron] Added missing visibility keywords.
PHPBB3-9596
This commit is contained in:
parent
652372bdb1
commit
8c8211d15a
2 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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" />';
|
||||
|
|
Loading…
Add table
Reference in a new issue