Abstract class defining a scheduled task.
More...
Inherits core\task\task_base.
Inherited by auth_cas\task\sync_task, auth_db\task\sync_users, auth_ldap\task\sync_roles, auth_ldap\task\sync_task, auth_mnet\task\cron_task, block_recent_activity\task\cleanup, block_rss_client\task\refreshfeeds, cachestore_redis\task\ttl, core\oauth2\refresh_system_tokens_task, core\task\analytics_cleanup_task, core\task\antivirus_cleanup_task, core\task\automated_backup_report_task, core\task\automated_backup_task, core\task\badges_cron_task, core\task\badges_message_task, core\task\blog_cron_task, core\task\cache_cleanup_task, core\task\cache_cron_task, core\task\calendar_cron_task, core\task\check_for_updates_task, core\task\complete_plans_task, core\task\completion_daily_task, core\task\completion_regular_task, core\task\context_cleanup_task, core\task\create_contexts_task, core\task\delete_incomplete_users_task, core\task\delete_unconfirmed_users_task, core\task\file_temp_cleanup_task, core\task\file_trash_cleanup_task, core\task\grade_cron_task, core\task\grade_history_cleanup_task, core\task\h5p_clean_orphaned_records_task, core\task\h5p_get_content_types_task, core\task\messaging_cleanup_task, core\task\password_reset_cleanup_task, core\task\plagiarism_cron_task, core\task\portfolio_cron_task, core\task\question_preview_cleanup_task, core\task\registration_cron_task, core\task\search_index_task, core\task\search_optimize_task, core\task\send_failed_login_notifications_task, core\task\send_new_user_passwords_task, core\task\session_cleanup_task, core\task\show_started_courses_task, core\task\stats_cron_task, core\task\sync_plans_from_template_cohorts_task, core\task\tag_cron_task, core\task\task_lock_cleanup_task, core\task\task_log_cleanup_task, core_files\task\conversion_cleanup_task, core_reportbuilder\task\send_schedules, core_xapi\task\state_cleanup_task, editor_atto\task\autosave_cleanup_task, enrol_category\task\enrol_category_sync, enrol_cohort\task\enrol_cohort_sync, enrol_database\task\sync_enrolments, enrol_flatfile\task\flatfile_sync_task, enrol_imsenterprise\task\cron_task, enrol_ldap\task\sync_enrolments, enrol_lti\local\ltiadvantage\task\sync_grades, enrol_lti\local\ltiadvantage\task\sync_members, enrol_lti\task\sync_grades, enrol_lti\task\sync_members, enrol_manual\task\send_expiry_notifications, enrol_manual\task\sync_enrolments, enrol_meta\task\enrol_meta_sync, enrol_paypal\task\process_expirations, enrol_self\task\send_expiry_notifications, enrol_self\task\sync_enrolments, factor_grace\task\revoke_expired_factors, factor_nosetup\task\delete_unusable_factors, logstore_standard\task\cleanup_task, ltiservice_gradebookservices\task\cleanup_task, message_email\task\send_email_task, mod_assign\task\cron_task, mod_bigbluebuttonbn\task\check_dismissed_recordings, mod_bigbluebuttonbn\task\check_pending_recordings, mod_chat\task\cron_task, mod_forum\task\cron_task, mod_lti\task\clean_access_tokens, mod_quiz\task\quiz_notify_attempt_manual_grading_completed, mod_quiz\task\update_overdue_attempts, mod_scorm\task\cron_task, mod_workshop\task\cron_task, repository_dropbox\task\cron_task, repository_filesystem\task\cron_task, repository_onedrive\remove_temp_access_task, tool_analytics\task\predict_models, tool_analytics\task\train_models, tool_brickfield\task\bulk_process_caches, tool_brickfield\task\bulk_process_courses, tool_brickfield\task\checkid_validation, tool_brickfield\task\process_analysis_requests, tool_brickfield\task\update_summarydata, tool_cohortroles\task\cohort_role_sync, tool_dataprivacy\task\delete_existing_deleted_users, tool_dataprivacy\task\delete_expired_contexts, tool_dataprivacy\task\delete_expired_requests, tool_dataprivacy\task\expired_retention_period, tool_langimport\task\update_langpacks_task, tool_messageinbound\task\cleanup_task, tool_messageinbound\task\pickup_task, tool_monitor\task\check_subscriptions, tool_monitor\task\clean_events, tool_recyclebin\task\cleanup_category_bin, tool_recyclebin\task\cleanup_course_bin, tool_task\scheduled_checker_task, and workshopallocation_scheduled\task\cron_task.
|
static | get_html_id (string $classname) |
| Produces a valid id string to use as id attribute based on the given FQCN class name.
|
|
|
const | DAYMAX = 31 |
| Maximum day of month value.
|
|
const | DAYMIN = 1 |
| Minimum day of month value.
|
|
const | DAYOFWEEKMAX = 6 |
| Maximum dayofweek value.
|
|
const | DAYOFWEEKMAXINPUT = 7 |
| Maximum dayofweek value allowed in input (7 = 0).
|
|
const | DAYOFWEEKMIN = 0 |
| Minimum dayofweek value.
|
|
const | FIELD_DAY = 'day' |
| Day-of-month field identifier.
|
|
const | FIELD_DAYOFWEEK = 'dayofweek' |
| Day-of-week field identifier.
|
|
const | FIELD_HOUR = 'hour' |
| Hour field identifier.
|
|
const | FIELD_MINUTE = 'minute' |
| Minute field identifier.
|
|
const | FIELD_MONTH = 'month' |
| Month field identifier.
|
|
const | HOURMAX = 23 |
| Maximum hour value.
|
|
const | HOURMIN = 0 |
| Minimum hour value.
|
|
const | MINUTEMAX = 59 |
| Maximum minute value.
|
|
const | MINUTEMIN = 0 |
| Minimum minute value.
|
|
const | MONTHMAX = 12 |
| Maximum month value.
|
|
const | MONTHMIN = 1 |
| Minimum month value.
|
|
const | NEVER_RUN_TIME = 7952342400 |
| Time used for the next scheduled time when a task should never run.
|
|
|
| get_next_scheduled_time_inner (int $now, array $validminutes, array $validhours, array $validdays, array $validdaysofweek, array $validmonths, int $originalyear=0) |
| Recursively calculate the next valid time for this task.
|
|
Abstract class defining a scheduled task.
- Copyright
- 2013 Damyon Wiese
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ can_run()
core\task\scheduled_task::can_run |
( |
| ) |
|
Informs whether this task can be run.
- Return values
-
bool | true when this task can be run. false otherwise. |
Reimplemented in cachestore_redis\task\ttl.
◆ eval_cron_field()
core\task\scheduled_task::eval_cron_field |
( |
| $field, |
|
|
| $min, |
|
|
| $max ) |
Take a cron field definition and return an array of valid numbers with the range min-max.
- Parameters
-
string | $field | - The field definition. |
int | $min | - The minimum allowable value. |
int | $max | - The maximum allowable value. |
- Return values
-
◆ execute()
core\task\task_base::execute |
( |
| ) |
|
|
abstractinherited |
Do the job.
Throw exceptions on errors (the job will be retried).
Reimplemented in assignfeedback_editpdf\task\bump_submission_for_stale_conversions, assignfeedback_editpdf\task\convert_submission, assignfeedback_editpdf\task\remove_orphaned_editpdf_files, auth_cas\task\sync_task, auth_db\task\sync_users, auth_ldap\task\sync_roles, auth_ldap\task\sync_task, auth_mnet\task\cron_task, block_recent_activity\task\cleanup, block_rss_client\task\refreshfeeds, cachestore_file\task\asyncpurge, cachestore_redis\task\ttl, core\oauth2\refresh_system_tokens_task, core\task\analytics_cleanup_task, core\task\antivirus_cleanup_task, core\task\asynchronous_backup_task, core\task\asynchronous_copy_task, core\task\asynchronous_restore_task, core\task\automated_backup_report_task, core\task\automated_backup_task, core\task\badges_adhoc_task, core\task\badges_cron_task, core\task\badges_message_task, core\task\blog_cron_task, core\task\build_installed_themes_task, core\task\cache_cleanup_task, core\task\cache_cron_task, core\task\calendar_cron_task, core\task\calendar_fix_orphaned_events, core\task\check_for_updates_task, core\task\clean_up_deleted_search_area_task, core\task\complete_plans_task, core\task\completion_daily_task, core\task\completion_regular_task, core\task\context_cleanup_task, core\task\course_backup_task, core\task\create_contexts_task, core\task\delete_incomplete_users_task, core\task\delete_unconfirmed_users_task, core\task\file_temp_cleanup_task, core\task\file_trash_cleanup_task, core\task\fix_file_timestamps_task, core\task\grade_cron_task, core\task\grade_history_cleanup_task, core\task\h5p_clean_orphaned_records_task, core\task\h5p_get_content_types_task, core\task\messaging_cleanup_task, core\task\password_reset_cleanup_task, core\task\plagiarism_cron_task, core\task\portfolio_cron_task, core\task\question_preview_cleanup_task, core\task\refresh_mod_calendar_events_task, core\task\registration_cron_task, core\task\search_index_task, core\task\search_optimize_task, core\task\send_failed_login_notifications_task, core\task\send_login_notifications, core\task\send_new_user_passwords_task, core\task\session_cleanup_task, core\task\show_started_courses_task, core\task\stats_cron_task, core\task\sync_plans_from_template_cohorts_task, core\task\tag_cron_task, core\task\task_lock_cleanup_task, core\task\task_log_cleanup_task, core_communication\task\add_members_to_room_task, core_communication\task\create_and_configure_room_task, core_communication\task\delete_room_task, core_communication\task\remove_members_from_room, core_communication\task\update_room_membership_task, core_communication\task\update_room_task, core_course\task\content_notification_task, core_course\task\course_delete_modules, core_files\task\conversion_cleanup_task, core_message\task\migrate_message_data, core_reportbuilder\task\send_schedule, core_reportbuilder\task\send_schedules, core_xapi\task\state_cleanup_task, editor_atto\task\autosave_cleanup_task, enrol_category\task\enrol_category_sync, enrol_cohort\task\enrol_cohort_sync, enrol_database\task\sync_enrolments, enrol_flatfile\task\flatfile_sync_task, enrol_imsenterprise\task\cron_task, enrol_ldap\task\sync_enrolments, enrol_lti\local\ltiadvantage\task\sync_grades, enrol_lti\local\ltiadvantage\task\sync_members, enrol_lti\local\ltiadvantage\task\sync_tool_grades, enrol_lti\task\sync_grades, enrol_lti\task\sync_members, enrol_manual\task\send_expiry_notifications, enrol_manual\task\sync_enrolments, enrol_meta\task\enrol_meta_sync, enrol_paypal\task\process_expirations, enrol_self\task\send_expiry_notifications, enrol_self\task\sync_enrolments, factor_grace\task\revoke_expired_factors, factor_nosetup\task\delete_unusable_factors, logstore_standard\task\cleanup_task, ltiservice_gradebookservices\task\cleanup_task, message_email\task\send_email_task, mod_assign\task\cron_task, mod_bigbluebuttonbn\task\base_send_notification, mod_bigbluebuttonbn\task\check_dismissed_recordings, mod_bigbluebuttonbn\task\check_pending_recordings, mod_bigbluebuttonbn\task\completion_update_state, mod_bigbluebuttonbn\task\reset_recordings, mod_bigbluebuttonbn\task\send_bigbluebutton_module_disabled_notification, mod_bigbluebuttonbn\task\send_notification, mod_bigbluebuttonbn\task\upgrade_recordings_task, mod_chat\task\cron_task, mod_forum\task\cron_task, mod_forum\task\send_user_digests, mod_forum\task\send_user_notifications, mod_lti\task\clean_access_tokens, mod_quiz\task\quiz_notify_attempt_manual_grading_completed, mod_quiz\task\update_overdue_attempts, mod_scorm\task\cron_task, mod_scorm\task\update_grades, mod_workshop\task\cron_task, quiz_statistics\task\recalculate, repository_dropbox\task\cron_task, repository_filesystem\task\cron_task, repository_onedrive\remove_temp_access_task, tool_analytics\task\predict_models, tool_analytics\task\train_models, tool_brickfield\task\bulk_process_caches, tool_brickfield\task\bulk_process_courses, tool_brickfield\task\checkid_validation, tool_brickfield\task\process_analysis_requests, tool_brickfield\task\update_summarydata, tool_cohortroles\task\cohort_role_sync, tool_dataprivacy\task\delete_existing_deleted_users, tool_dataprivacy\task\delete_expired_contexts, tool_dataprivacy\task\delete_expired_requests, tool_dataprivacy\task\expired_retention_period, tool_langimport\task\install_langpacks, tool_langimport\task\update_langpacks_task, tool_messageinbound\task\cleanup_task, tool_messageinbound\task\pickup_task, tool_monitor\notification_task, tool_monitor\task\check_subscriptions, tool_monitor\task\clean_events, tool_moodlenet\task\post_install, tool_moodlenet\task\send_enable_notification, tool_moodlenet\task\send_mnet_profiles_data_removed_notification, tool_recyclebin\task\cleanup_category_bin, tool_recyclebin\task\cleanup_course_bin, tool_task\scheduled_checker_task, and workshopallocation_scheduled\task\cron_task.
◆ get_component()
core\task\task_base::get_component |
( |
| ) |
|
|
inherited |
Getter for $component.
- Return values
-
◆ get_cron_lock()
core\task\task_base::get_cron_lock |
( |
| ) |
|
|
inherited |
Get the current lock for the entire cron.
- Return values
-
◆ get_day()
core\task\scheduled_task::get_day |
( |
| ) |
|
Getter for $day.
- Return values
-
◆ get_day_of_week()
core\task\scheduled_task::get_day_of_week |
( |
| ) |
|
Getter for $dayofweek.
- Return values
-
◆ get_disabled()
core\task\scheduled_task::get_disabled |
( |
| ) |
|
Getter for $disabled.
- Return values
-
◆ get_fail_delay()
core\task\task_base::get_fail_delay |
( |
| ) |
|
|
inherited |
Getter for $faildelay.
- Return values
-
◆ get_hostname()
core\task\task_base::get_hostname |
( |
| ) |
|
|
inherited |
Getter for $hostname.
- Return values
-
◆ get_hour()
core\task\scheduled_task::get_hour |
( |
| ) |
|
Getter for $hour.
- Return values
-
◆ get_html_id()
static core\task\scheduled_task::get_html_id |
( |
string | $classname | ) |
|
|
static |
Produces a valid id string to use as id attribute based on the given FQCN class name.
- Parameters
-
string | $classname | FQCN of a task. |
- Return values
-
string | valid string to be used as id attribute. |
◆ get_last_run_time()
core\task\scheduled_task::get_last_run_time |
( |
| ) |
|
Get the last run time for this scheduled task.
- Return values
-
◆ get_lock()
core\task\task_base::get_lock |
( |
| ) |
|
|
inherited |
Get the current lock for this task.
- Return values
-
◆ get_minute()
core\task\scheduled_task::get_minute |
( |
| ) |
|
Getter for $minute.
- Return values
-
◆ get_month()
core\task\scheduled_task::get_month |
( |
| ) |
|
Getter for $month.
- Return values
-
◆ get_name()
core\task\task_base::get_name |
( |
| ) |
|
|
abstractinherited |
Get a descriptive name for the task (shown to admins)
- Return values
-
Reimplemented in auth_cas\task\sync_task, auth_db\task\sync_users, auth_ldap\task\sync_roles, auth_ldap\task\sync_task, auth_mnet\task\cron_task, block_recent_activity\task\cleanup, block_rss_client\task\refreshfeeds, cachestore_redis\task\ttl, core\oauth2\refresh_system_tokens_task, core\task\adhoc_task, core\task\analytics_cleanup_task, core\task\antivirus_cleanup_task, core\task\automated_backup_report_task, core\task\automated_backup_task, core\task\badges_adhoc_task, core\task\badges_cron_task, core\task\badges_message_task, core\task\blog_cron_task, core\task\cache_cleanup_task, core\task\cache_cron_task, core\task\calendar_cron_task, core\task\check_for_updates_task, core\task\complete_plans_task, core\task\completion_daily_task, core\task\completion_regular_task, core\task\context_cleanup_task, core\task\create_contexts_task, core\task\delete_incomplete_users_task, core\task\delete_unconfirmed_users_task, core\task\file_temp_cleanup_task, core\task\file_trash_cleanup_task, core\task\grade_cron_task, core\task\grade_history_cleanup_task, core\task\h5p_clean_orphaned_records_task, core\task\h5p_get_content_types_task, core\task\hide_ended_courses_task, core\task\messaging_cleanup_task, core\task\password_reset_cleanup_task, core\task\plagiarism_cron_task, core\task\portfolio_cron_task, core\task\question_preview_cleanup_task, core\task\registration_cron_task, core\task\search_index_task, core\task\search_optimize_task, core\task\send_failed_login_notifications_task, core\task\send_new_user_passwords_task, core\task\session_cleanup_task, core\task\show_started_courses_task, core\task\stats_cron_task, core\task\sync_plans_from_template_cohorts_task, core\task\tag_cron_task, core\task\task_lock_cleanup_task, core\task\task_log_cleanup_task, core_files\task\conversion_cleanup_task, core_reportbuilder\task\send_schedule, core_reportbuilder\task\send_schedules, core_xapi\task\state_cleanup_task, editor_atto\task\autosave_cleanup_task, enrol_category\task\enrol_category_sync, enrol_cohort\task\enrol_cohort_sync, enrol_database\task\sync_enrolments, enrol_flatfile\task\flatfile_sync_task, enrol_imsenterprise\task\cron_task, enrol_ldap\task\sync_enrolments, enrol_lti\local\ltiadvantage\task\sync_grades, enrol_lti\local\ltiadvantage\task\sync_members, enrol_lti\task\sync_grades, enrol_lti\task\sync_members, enrol_manual\task\send_expiry_notifications, enrol_manual\task\sync_enrolments, enrol_meta\task\enrol_meta_sync, enrol_paypal\task\process_expirations, enrol_self\task\send_expiry_notifications, enrol_self\task\sync_enrolments, factor_grace\task\revoke_expired_factors, factor_nosetup\task\delete_unusable_factors, logstore_standard\task\cleanup_task, ltiservice_gradebookservices\task\cleanup_task, message_email\task\send_email_task, mod_assign\task\cron_task, mod_bigbluebuttonbn\task\check_dismissed_recordings, mod_bigbluebuttonbn\task\check_pending_recordings, mod_chat\task\cron_task, mod_forum\task\cron_task, mod_lti\task\clean_access_tokens, mod_quiz\task\quiz_notify_attempt_manual_grading_completed, mod_quiz\task\update_overdue_attempts, mod_scorm\task\cron_task, mod_workshop\task\cron_task, quiz_statistics\task\recalculate, repository_dropbox\task\cron_task, repository_filesystem\task\cron_task, repository_onedrive\remove_temp_access_task, tool_analytics\task\predict_models, tool_analytics\task\train_models, tool_brickfield\task\bulk_process_caches, tool_brickfield\task\bulk_process_courses, tool_brickfield\task\checkid_validation, tool_brickfield\task\process_analysis_requests, tool_brickfield\task\update_summarydata, tool_cohortroles\task\cohort_role_sync, tool_dataprivacy\task\delete_existing_deleted_users, tool_dataprivacy\task\delete_expired_contexts, tool_dataprivacy\task\delete_expired_requests, tool_dataprivacy\task\expired_retention_period, tool_langimport\task\update_langpacks_task, tool_messageinbound\task\cleanup_task, tool_messageinbound\task\pickup_task, tool_monitor\task\check_subscriptions, tool_monitor\task\clean_events, tool_recyclebin\task\cleanup_category_bin, tool_recyclebin\task\cleanup_course_bin, tool_task\scheduled_checker_task, and workshopallocation_scheduled\task\cron_task.
◆ get_next_run_time()
core\task\task_base::get_next_run_time |
( |
| ) |
|
|
inherited |
Get the next run time for this task.
- Return values
-
◆ get_next_scheduled_time()
core\task\scheduled_task::get_next_scheduled_time |
( |
int | $now = 0 | ) |
|
Calculate when this task should next be run based on the schedule.
- Parameters
-
int | $now | Current time, for testing (leave 0 to use default time) |
- Return values
-
◆ get_next_scheduled_time_inner()
core\task\scheduled_task::get_next_scheduled_time_inner |
( |
int | $now, |
|
|
array | $validminutes, |
|
|
array | $validhours, |
|
|
array | $validdays, |
|
|
array | $validdaysofweek, |
|
|
array | $validmonths, |
|
|
int | $originalyear = 0 ) |
|
protected |
Recursively calculate the next valid time for this task.
- Parameters
-
int | $now | Start time |
array | $validminutes | Valid minutes |
array | $validhours | Valid hours |
array | $validdays | Valid days |
array | $validdaysofweek | Valid days of week |
array | $validmonths | Valid months |
int | $originalyear | Zero for first call, original year for recursive calls |
- Return values
-
◆ get_pid()
core\task\task_base::get_pid |
( |
| ) |
|
|
inherited |
Getter for $pid.
- Return values
-
◆ get_run_if_component_disabled()
core\task\scheduled_task::get_run_if_component_disabled |
( |
| ) |
|
Override this function if you want this scheduled task to run, even if the component is disabled.
- Return values
-
◆ get_runtime()
core\task\task_base::get_runtime |
( |
| ) |
|
|
inherited |
Returns task runtime.
- Return values
-
◆ get_runtime_result()
core\task\task_base::get_runtime_result |
( |
| ) |
|
|
inherited |
Returns if the task has been running for too long.
- Return values
-
◆ get_timestarted()
core\task\task_base::get_timestarted |
( |
| ) |
|
|
inherited |
Getter for $timestarted.
- Return values
-
◆ has_default_configuration()
core\task\scheduled_task::has_default_configuration |
( |
| ) |
|
Determine if this task is using its default configuration changed from the default.
Returns true if it is and false otherwise. Does not rely on the customised field.
- Return values
-
◆ is_blocking()
core\task\task_base::is_blocking |
( |
| ) |
|
|
inherited |
Getter for $blocking.
- Return values
-
◆ is_component_enabled()
core\task\task_base::is_component_enabled |
( |
| ) |
|
|
inherited |
Informs whether the task's component is enabled.
- Return values
-
bool | true when enabled. false otherwise. |
◆ is_customised()
core\task\scheduled_task::is_customised |
( |
| ) |
|
Has this task been changed from it's default config?
- Return values
-
◆ is_enabled()
core\task\scheduled_task::is_enabled |
( |
| ) |
|
Checks whether the component and the task disabled flag enables to run this task.
This do not checks whether the task manager allows running them or if the site allows tasks to "run now".
- Return values
-
bool | true if task is enabled. false otherwise. |
◆ is_overridden()
core\task\scheduled_task::is_overridden |
( |
| ) |
|
Has this task been changed from it's default config?
- Return values
-
◆ is_valid()
core\task\scheduled_task::is_valid |
( |
string | $field | ) |
|
Informs whether the given field is valid.
Use the constants FIELD_* to identify the field. Have to be called after the method set_{field}(string).
- Parameters
-
string | $field | field identifier; expected values from constants FIELD_*. |
- Return values
-
bool | true if given field is valid. false otherwise. |
◆ set_blocking()
core\task\task_base::set_blocking |
( |
| $blocking | ) |
|
|
inherited |
Setter for $blocking.
- Parameters
-
◆ set_component()
core\task\task_base::set_component |
( |
| $component | ) |
|
|
inherited |
Setter for $component.
- Parameters
-
◆ set_cron_lock()
Set the current lock for the entire cron process.
- Parameters
-
◆ set_customised()
core\task\scheduled_task::set_customised |
( |
| $customised | ) |
|
Set customised for this scheduled task.
- Parameters
-
◆ set_day()
core\task\scheduled_task::set_day |
( |
| $day | ) |
|
Setter for $day.
- Parameters
-
◆ set_day_of_week()
core\task\scheduled_task::set_day_of_week |
( |
| $dayofweek, |
|
|
| $expandr = true ) |
Setter for $dayofweek.
- Parameters
-
string | $dayofweek | |
bool | $expandr | - if true (default) an 'R' value in a time is expanded to an appropriate int. If false, they are left as 'R' |
◆ set_disabled()
core\task\scheduled_task::set_disabled |
( |
| $disabled | ) |
|
Setter for $disabled.
- Parameters
-
◆ set_fail_delay()
core\task\task_base::set_fail_delay |
( |
| $faildelay | ) |
|
|
inherited |
Setter for $faildelay.
- Parameters
-
◆ set_hostname()
core\task\task_base::set_hostname |
( |
| $hostname = null | ) |
|
|
inherited |
Setter for $hostname.
- Parameters
-
◆ set_hour()
core\task\scheduled_task::set_hour |
( |
| $hour, |
|
|
| $expandr = true ) |
Setter for $hour.
Accepts a special 'R' value which will be translated to a random hour.
- Parameters
-
string | $hour | |
bool | $expandr | - if true (default) an 'R' value in a time is expanded to an appropriate int. If false, they are left as 'R' |
◆ set_last_run_time()
core\task\scheduled_task::set_last_run_time |
( |
| $lastruntime | ) |
|
Set the last run time for this scheduled task.
- Parameters
-
◆ set_lock()
Set the current lock for this task.
- Parameters
-
◆ set_minute()
core\task\scheduled_task::set_minute |
( |
| $minute, |
|
|
| $expandr = true ) |
Setter for $minute.
Accepts a special 'R' value which will be translated to a random minute.
- Parameters
-
string | $minute | |
bool | $expandr | - if true (default) an 'R' value in a time is expanded to an appropriate int. If false, they are left as 'R' |
◆ set_month()
core\task\scheduled_task::set_month |
( |
| $month | ) |
|
Setter for $month.
- Parameters
-
◆ set_next_run_time()
core\task\task_base::set_next_run_time |
( |
| $nextruntime | ) |
|
|
inherited |
Set the next run time for this task.
- Parameters
-
◆ set_overridden()
core\task\scheduled_task::set_overridden |
( |
bool | $overridden | ) |
|
Set the overridden value.
- Parameters
-
◆ set_pid()
core\task\task_base::set_pid |
( |
| $pid = null | ) |
|
|
inherited |
Setter for $pid.
- Parameters
-
◆ set_timestarted()
core\task\task_base::set_timestarted |
( |
| $timestarted = null | ) |
|
|
inherited |
Setter for $timestarted.
- Parameters
-
◆ NEVER_RUN_TIME
const core\task\scheduled_task::NEVER_RUN_TIME = 7952342400 |
Time used for the next scheduled time when a task should never run.
This is 2222-01-01 00:00 GMT which is a large time that still fits in 10 digits.
The documentation for this class was generated from the following file: