Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes | Functions | Variables
core\task Namespace Reference

  More...

Classes

class  adhoc_task
 Abstract class defining an adhoc task. More...
 
class  analytics_cleanup_task
 Delete stale records from analytics tables. 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_task
 Simple task to run the backup cron. More...
 
class  backup_cleanup_task
 Simple task to delete old backup records. 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  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_get_content_types_task
 A task to get the latest content types from the official H5P repository. More...
 
class  legacy_plugin_cron_task
 Simple task to run cron for all plugins. 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  question_stats_cleanup_task
 A task to cleanup old question statistics cache. 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_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  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_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. More...
 
 log ($message, $depth=1)
 Log a message to the progress tracer. More...
 
 log_finish ($message, $depth=0)
 Log an end message to the progress tracer. More...
 
 log_start ($message, $depth=0)
 Log a start message to the progress tracer. More...
 

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. More...
 

Detailed Description