Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core\task Namespace Reference

Adhoc task abstract class. More...

Classes

class  adhoc_task
 Abstract class defining an adhoc task. More...
 
class  analytics_cleanup_task
 Delete stale records from analytics tables. More...
 
class  antivirus_cleanup_task
 Clean up task for core antivirus. More...
 
class  asynchronous_backup_task
 Adhoc task that performs asynchronous backups. More...
 
class  asynchronous_copy_task
 Adhoc task that performs asynchronous course copies. More...
 
class  asynchronous_restore_task
 Adhoc task that performs asynchronous restores. More...
 
class  automated_backup_report_task
 Report task for core automation backup. More...
 
class  automated_backup_task
 Simple task to run the backup cron. More...
 
class  badges_adhoc_task
 Class badges_adhoc_task. More...
 
class  badges_cron_task
 Simple task to run the badges cron. More...
 
class  badges_message_task
 Simple task to run the badges cron. More...
 
class  blog_cron_task
 Simple task to run the blog cron. More...
 
class  build_installed_themes_task
 Class that builds and caches all of the site's installed themes. More...
 
class  cache_cleanup_task
 Simple task to delete old cache records. More...
 
class  cache_cron_task
 Simple task to run the cache cron. More...
 
class  calendar_cron_task
 Simple task to run the calendar cron. More...
 
class  calendar_fix_orphaned_events
 Class handling fixing of events that have had their userid lost. More...
 
class  check_for_updates_task
 Simple task to run the registration cron. More...
 
class  clean_up_deleted_search_area_task
 Class that cleans up data related to deleted search area. More...
 
class  complete_plans_task
 Complete plans task class. More...
 
class  completion_daily_task
 Simple task to run the daily completion cron. More...
 
class  completion_regular_task
 Simple task to run the regular completion cron. More...
 
class  context_cleanup_task
 Simple task to delete old context records. More...
 
class  course_backup_task
 Adhoc task that performs single automated course backup. More...
 
class  create_contexts_task
 Simple task to create missing contexts at all levels. More...
 
class  database_logger
 Database logger for task logging. More...
 
class  delete_incomplete_users_task
 Simple task to delete user accounts for users who have not completed their profile in time. More...
 
class  delete_unconfirmed_users_task
 Simple task to delete user accounts for users who have not confirmed in time. More...
 
class  file_temp_cleanup_task
 Simple task to delete temp files older than 1 week. More...
 
class  file_trash_cleanup_task
 Simple task to run the file trash cleanup cron. More...
 
class  fix_file_timestamps_task
 Retroactively fixes file timestamps that are older than the containing folder record. More...
 
class  grade_cron_task
 Simple task to run the grade cron. More...
 
class  grade_history_cleanup_task
 Simple task to clean grade history tables. More...
 
class  h5p_clean_orphaned_records_task
 A schedule task to clean orphaned h5p records (for example for deleted activity). More...
 
class  h5p_get_content_types_task
 A task to get the latest content types from the official H5P repository. More...
 
class  hide_ended_courses_task
 Simple task to automatically set the course visibility to hidden when the course end date matches the current day. More...
 
class  logmanager
 Task log manager. More...
 
class  manager
 Collection of task related methods. More...
 
class  messaging_cleanup_task
 Simple task to delete old messaging records. More...
 
class  password_reset_cleanup_task
 Simple task to delete old password reset records. More...
 
class  plagiarism_cron_task
 Simple task to run the plagiarism cron. More...
 
class  portfolio_cron_task
 Simple task to run the portfolio cron. More...
 
class  question_preview_cleanup_task
 A task to cleanup old question previews. More...
 
class  refresh_mod_calendar_events_task
 Class that updates all of the existing calendar events for modules that implement the *_refresh_events() hook. More...
 
class  registration_cron_task
 Simple task to run the registration cron. More...
 
class  scheduled_task
 Abstract class defining a scheduled task. More...
 
class  search_index_task
 Runs global search indexing. More...
 
class  search_optimize_task
 Runs search index optimization. More...
 
class  send_failed_login_notifications_task
 Simple task to send notifications about failed login attempts. More...
 
class  send_login_notifications
 Adhoc task that send login notifications. More...
 
class  send_new_user_passwords_task
 Simple task to create accounts and send password emails for new users. More...
 
class  session_cleanup_task
 Simple task to cleanup user sessions from a scheduled task. More...
 
class  show_started_courses_task
 Simple task to automatically set the course visibility to shown when the course start date matches the current day. More...
 
class  stats_cron_task
 Simple task to run the stats cron. More...
 
class  sync_plans_from_template_cohorts_task
 Synchronise plans from template cohorts. More...
 
class  tag_cron_task
 Simple task to run the tag cron. More...
 
class  task_base
 Abstract class for common properties of scheduled_task and adhoc_task. More...
 
class  task_lock_cleanup_task
 Adhoc task metadata cleanup task. More...
 
class  task_log_cleanup_task
 A task to cleanup log entries for tasks. More...
 
interface  task_logger
 Interface for task logging. More...
 

Functions

 get_trace ()
 Get the progress_trace.
 
 log ($message, $depth=1)
 Log a message to the progress tracer.
 
 log_finish ($message, $depth=0)
 Log an end message to the progress tracer.
 
 log_start ($message, $depth=0)
 Log a start message to the progress tracer.
 

Variables

global $CFG
 
stdClass $tracestats = null
 
const CORE_TASK_TASKS_FILENAME 'db/tasks.php'
 
trait logging_trait
 This trait includes functions to assist with logging in tasks.
 

Detailed Description

Adhoc task abstract class.

Interface for task logging.

Task to cleanup task logs.

Cleanup adhoc task metadata.

Abstract class for common properties of scheduled_task and adhoc_task.

Synchronise plans from template cohorts.

A scheduled task for global search.

Adhoc task that updates all of the existing calendar events for modules that implement the *_refresh_events() hook.

Task to cleanup old question previews.

Scheduled and adhoc task management.

Task log manager.

This file defines a trait to assist with logging in tasks.

Scheduled task abstract class.

Database logger for task logging.

Scheduled task class.

Adhoc task that performs single automated course backup.

Complete plans task.

Adhoc task that clean up data related ro deleted search area.

Adhoc task handling fixing of events that have had their userid lost.

Adhoc task that builds and caches all of the site's installed themes.

Adhoc task that performs asynchronous restores.

Adhoc task that performs asynchronous course copies.

Adhoc task that performs asynchronous backups.

Clean up task for core antivirus.

A scheduled task.

 

All background tasks should extend this class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Author
Nathan Nguyen natha.nosp@m.nngu.nosp@m.yen@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Author
Matt Porritt mattp.nosp@m.@cat.nosp@m.alyst.nosp@m.-au..nosp@m.net
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Author
Cameron Ball camer.nosp@m.on@c.nosp@m.amero.nosp@m.n172.nosp@m.9.xyz
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later