Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 39 and 311]

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