Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]
Contains the definiton of the email message processors (sends messages to users via email)
Copyright: | 2008 Luis Rodrigues and Martin Dougiamas |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 228 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
message_output_email:: (6 methods):
send_message()
config_form()
process_form()
get_default_messaging_settings()
load_data()
can_send_to_any_users()
Class: message_output_email - X-Ref
The email message processorsend_message($eventdata) X-Ref |
Processes the message (sends by email). param: object $eventdata the event data submitted by the message sender plus $eventdata->savedmessageid |
config_form($preferences) X-Ref |
Creates necessary fields in the messaging config form. param: array $preferences An array of user preferences |
process_form($form, &$preferences) X-Ref |
Parses the submitted form data and saves it into preferences array. param: stdClass $form preferences form class param: array $preferences preferences array |
get_default_messaging_settings() X-Ref |
Returns the default message output settings for this output return: int The default settings |
load_data(&$preferences, $userid) X-Ref |
Loads the config data from database to put on the form during initial form display param: array $preferences preferences array param: int $userid the user id |
can_send_to_any_users() X-Ref |
Returns true as message can be sent to internal support user. return: bool |