Moodle  2.2.1
http://www.collinsharper.com
message_output_email Class Reference
Inheritance diagram for message_output_email:
Collaboration diagram for message_output_email:

Public Member Functions

 send_message ($eventdata)
 config_form ($preferences)
 process_form ($form, &$preferences)
 get_default_messaging_settings ()
 load_data (&$preferences, $userid)

Detailed Description

Definition at line 35 of file message_output_email.php.


Member Function Documentation

config_form ( preferences)

Creates necessary fields in the messaging config form.

Parameters:
object$mformpreferences form class

Reimplemented from message_output.

Definition at line 76 of file message_output_email.php.

Here is the call graph for this function:

Returns:
int the Default message output settings for this output, for message providers that do not specify what the settings should be for this output in the messages.php file.

Reimplemented from message_output.

Definition at line 109 of file message_output_email.php.

load_data ( &$  preferences,
userid 
)

Loads the config data from database to put on the form (initial load)

Parameters:
array$preferencespreferences array
int$useridthe user id

Reimplemented from message_output.

Definition at line 118 of file message_output_email.php.

Here is the call graph for this function:

process_form ( form,
&$  preferences 
)

Parses the form submitted data and saves it into preferences array.

Parameters:
object$mformpreferences form class
array$preferencespreferences array

Reimplemented from message_output.

Definition at line 98 of file message_output_email.php.

send_message ( eventdata)

Processes the message (sends by email).

Parameters:
object$eventdatathe event data submitted by the message sender plus $eventdata->savedmessageid

Reimplemented from message_output.

Definition at line 40 of file message_output_email.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations