mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12597] Add doc blocs in execute_all.php
PHPBB3-12597
This commit is contained in:
parent
50cb9d5838
commit
8a1e189970
1 changed files with 23 additions and 0 deletions
|
@ -23,6 +23,14 @@ class execute_all extends \phpbb\console\command\command
|
||||||
/** @var \phpbb\user */
|
/** @var \phpbb\user */
|
||||||
protected $user;
|
protected $user;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct method
|
||||||
|
*
|
||||||
|
* @param \phpbb\cron\manager $cron_manager The cron manager containing
|
||||||
|
* the cron tasks to be executed.
|
||||||
|
* @param \phpbb\lock\db $lock_db The lock for accessing database.
|
||||||
|
* @param \phobb\user $user The user object (used to get language information)
|
||||||
|
*/
|
||||||
public function __construct(\phpbb\cron\manager $cron_manager, \phpbb\lock\db $lock_db, \phpbb\user $user)
|
public function __construct(\phpbb\cron\manager $cron_manager, \phpbb\lock\db $lock_db, \phpbb\user $user)
|
||||||
{
|
{
|
||||||
$this->cron_manager = $cron_manager;
|
$this->cron_manager = $cron_manager;
|
||||||
|
@ -31,6 +39,11 @@ class execute_all extends \phpbb\console\command\command
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the command name and description
|
||||||
|
*
|
||||||
|
* @return null
|
||||||
|
*/
|
||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
|
@ -39,6 +52,16 @@ class execute_all extends \phpbb\console\command\command
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Executes the function. Each cron tasks is executed.
|
||||||
|
* If option "--verbose" is not seted, there will be no output in case of
|
||||||
|
* successful execution.
|
||||||
|
*
|
||||||
|
* @param InputInterface input The input stream, unused here
|
||||||
|
* @param OutputInterface output The output stream, used for printig verbose-mode
|
||||||
|
* and error information.
|
||||||
|
* @return null
|
||||||
|
*/
|
||||||
protected function execute(InputInterface $input, OutputInterface $output)
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
if ($this->lock_db->acquire())
|
if ($this->lock_db->acquire())
|
||||||
|
|
Loading…
Add table
Reference in a new issue