|
Moodle APIs 3.11
Moodle 3.11.11+ (Build: 20221125)
|
Public Member Functions | |
| execute () | |
| Execute the ad hoc task. More... | |
| get_component () | |
| Getter for $component. More... | |
| get_concurrency_limit () | |
| Returns effective concurrency limit for this task. More... | |
| get_cron_lock () | |
| Get the current lock for the entire cron. More... | |
| get_custom_data () | |
| Getter for $customdata. More... | |
| get_custom_data_as_string () | |
| Alternate getter for $customdata. More... | |
| get_fail_delay () | |
| Getter for $faildelay. More... | |
| get_hostname () | |
| Getter for $hostname. More... | |
| get_id () | |
| Getter for $id. More... | |
| get_lock () | |
| Get the current lock for this task. More... | |
| get_next_run_time () | |
| Get the next run time for this task. More... | |
| get_pid () | |
| Getter for $pid. More... | |
| get_timestarted () | |
| Getter for $timestarted. More... | |
| get_userid () | |
| Getter for $userid. More... | |
| is_blocking () | |
| Getter for $blocking. More... | |
| release_concurrency_lock () | |
| Release the concurrency lock for this task type. | |
| set_blocking ($blocking) | |
| Setter for $blocking. More... | |
| set_component ($component) | |
| Setter for $component. More... | |
| set_concurrency_lock (\core\lock\lock $lock) | |
| Sets concurrency task lock. More... | |
| set_cron_lock (\core\lock\lock $lock) | |
| Set the current lock for the entire cron process. More... | |
| set_custom_data ($customdata) | |
| Setter for $customdata. More... | |
| set_custom_data_as_string ($customdata) | |
| Alternate setter for $customdata. More... | |
| set_fail_delay ($faildelay) | |
| Setter for $faildelay. More... | |
| set_hostname ($hostname=null) | |
| Setter for $hostname. More... | |
| set_id ($id) | |
| Setter for $id. More... | |
| set_lock (\core\lock\lock $lock) | |
| Set the current lock for this task. More... | |
| set_next_run_time ($nextruntime) | |
| Set the next run time for this task. More... | |
| set_pid ($pid=null) | |
| Setter for $pid. More... | |
| set_timestarted ($timestarted=null) | |
| Setter for $timestarted. More... | |
| set_userid ($userid) | |
| Setter for $userid. More... | |
Protected Member Functions | |
| get_default_concurrency_limit () | |
| Returns default concurrency limit for this task. More... | |
| notify_user_error (string $error) | |
| Notify user that the task failed. More... | |
| notify_user_success (\tool_langimport\controller $controller) | |
| Notify user that the task finished successfully. More... | |
| tool_langimport\task\install_langpacks::execute | ( | ) |
Execute the ad hoc task.
Reimplemented from core\task\task_base.
|
inherited |
Getter for $component.
| string |
|
finalinherited |
Returns effective concurrency limit for this task.
| int | effective concurrency limit for this task |
|
inherited |
Get the current lock for the entire cron.
| core::lock::lock |
|
inherited |
Getter for $customdata.
| mixed | (anything that can be handled by json_decode). |
|
inherited |
Alternate getter for $customdata.
| string | this is the raw json encoded version. |
|
protectedinherited |
Returns default concurrency limit for this task.
| int | default concurrency limit |
|
inherited |
Getter for $faildelay.
| int |
|
inherited |
Getter for $hostname.
| string |
|
inherited |
Getter for $id.
| int|null::$id |
|
inherited |
Get the current lock for this task.
| core::lock::lock |
|
inherited |
Get the next run time for this task.
| int | timestamp |
|
inherited |
Getter for $pid.
| int |
|
inherited |
Getter for $timestarted.
| int |
|
inherited |
Getter for $userid.
| int|null::$userid |
|
inherited |
Getter for $blocking.
| bool |
|
protected |
Notify user that the task failed.
| string | $error | The error text |
|
protected |
Notify user that the task finished successfully.
| tool_langimport::controller | $controller |
|
inherited |
Setter for $blocking.
| bool | $blocking |
|
inherited |
Setter for $component.
| string | $component |
|
finalinherited |
Sets concurrency task lock.
| core::lock::lock | $lock | concurrency lock to be set |
|
inherited |
Set the current lock for the entire cron process.
| core::lock::lock | $lock |
|
inherited |
Setter for $customdata.
| mixed | $customdata | (anything that can be handled by json_encode) |
|
inherited |
Alternate setter for $customdata.
Expects the data as a json_encoded string.
| string | $customdata | json_encoded string |
|
inherited |
Setter for $faildelay.
| int | $faildelay |
|
inherited |
Setter for $hostname.
| string | $hostname |
|
inherited |
Setter for $id.
| int | null | $id |
|
inherited |
Set the current lock for this task.
| core::lock::lock | $lock |
|
inherited |
Set the next run time for this task.
| int | $nextruntime |
|
inherited |
Setter for $pid.
| int | $pid |
|
inherited |
Setter for $timestarted.
| int | $timestarted |
|
inherited |
Setter for $userid.
| int | null | $userid |