Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 39 and 400]

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.

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

Class: is  - X-Ref

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

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