LLMS_Notifications
LifterLMS Notifications Management and Interface
Description Description
Loads and allows interactions with notification views, controllers, and processors.
Source Source
File: includes/notifications/class.llms.notifications.php
Changelog Changelog
Version | Description |
---|---|
3.8.0 | |
3.38.0 | Updated processor scheduling for increased performance and reliability. |
3.36.1 | Record notifications as read during the wp_print_footer_scripts hook. |
3.24.0 | Introduced. |
Methods Methods
- __construct — Constructor
- dispatch_processor_async — Async callback to dispatch processors
- dispatch_processors — On shutdown, check for processors that have items in the queue that need to be saved — deprecated
- enqueue_basic — Enqueue basic notifications for onscreen display
- get_controller — Get a single controller instance
- get_controllers — Get loaded controllers
- get_directory — Get the directory path for core notification classes
- get_processor — Retrieve a single processor instance
- get_processors — Get loaded processors
- get_view — Retrieve a view instance of a notification
- get_view_classname — Get the classname for the view of a given notification based off it's trigger
- instance — Main Instance
- load — Load all notifications
- load_controller — Load and initialize a single controller
- load_processor — Load a single processor
- load_view — Load a single view
- mark_displayed_basics_as_read — Record notifications as read.
- name_to_file — Convert a trigger name to a filename string
- schedule_processing — Schedule a processor to dispatch its queue on shutdown
- schedule_processors_dispatch — Check for processors that have items in the queue
- schedule_single_processor — Save pending batches and schedule the async dispatching of a processor.