Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310]

Form for scheduled tasks admin pages.

Copyright: 2018 Toni Barbera <toni@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 78 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

run_from_cli:: (2 methods):
  find_php_cli_path()
  is_runnable()

is:: (1 method):
  execute()

is:: (1 method):
  execute()


Class: run_from_cli  - X-Ref

Running tasks from CLI.

find_php_cli_path()   X-Ref
Find the path of PHP CLI binary.

return: string|false The PHP CLI executable PATH

is_runnable()   X-Ref
Returns if Moodle have access to PHP CLI binary or not.

return: bool

Class: is  - X-Ref

execute(\core\task\task_base $task)   X-Ref
Executes a cron from web invocation using PHP CLI.

param: \core\task\task_base $task Task that be executed via CLI.
return: bool

Class: is  - X-Ref

execute(\core\task\task_base $task)   X-Ref
Executes a cron from web invocation using PHP CLI.

param: \core\task\task_base $task Task that be executed via CLI.
return: bool