Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
messagelib.php File Reference

Functions

 message_get_providers_for_user ($userid)
 Returns the active providers for the user specified, based on capability.
 
 message_get_providers_from_db ($component)
 Gets the message providers that are in the database for this component.
 
 message_get_providers_from_file ($component)
 Loads the messages definitions for a component from file.
 
 message_handle_phpunit_redirection (\core\message\message $eventdata, string $table, stdClass $tabledata)
 Helper method containing the PHPUnit specific code, used to redirect and capture messages/notifications.
 
 message_processor_uninstall ($name)
 Uninstall a message processor.
 
 message_provider_uninstall ($component)
 Remove all message providers for particular component and corresponding settings.
 
 message_send (\core\message\message $eventdata)
 Called when a message provider wants to send a message.
 
 message_set_default_message_preference ($component, $messagename, $fileprovider, $processorname='')
 Setting default messaging preferences for particular message provider.
 
 message_update_processors ($processorname)
 This function populates default message preferences for all existing providers when the new message processor is added.
 
 message_update_providers ($component='moodle')
 Updates the message_providers table with the current set of message providers.