Base message processor class for extension by message processors.
More...
Base message processor class for extension by message processors.
- Copyright
- 2008 Luis Rodrigues
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ can_send_to_any_users()
message_output::can_send_to_any_users |
( |
| ) |
|
Returns true if message can be sent to fake/internal user as well.
If message_output support message to be sent to fake user, then it should return true, like email.
- Return values
-
Reimplemented in message_output_email.
◆ config_form()
message_output::config_form |
( |
|
$preferences | ) |
|
|
abstract |
◆ force_process_messages()
message_output::force_process_messages |
( |
| ) |
|
Determines if this processor should process a message regardless of user preferences or site settings.
- Return values
-
◆ get_default_messaging_settings()
message_output::get_default_messaging_settings |
( |
| ) |
|
Returns the message processors default settings Should the processor be enabled for logged in users by default? Should the processor be enabled for logged off users by default? Is enabling it disallowed, permitted or forced?
- Return values
-
int | The Default message output settings expressed as a bit mask MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF + MESSAGE_DISALLOWED|MESSAGE_PERMITTED|MESSAGE_FORCED |
Reimplemented in message_output_email.
◆ has_message_preferences()
message_output::has_message_preferences |
( |
| ) |
|
Returns true if this processor has configurable message preferences.
This is distinct from notification preferences.
- Return values
-
◆ is_system_configured()
message_output::is_system_configured |
( |
| ) |
|
◆ is_user_configured()
message_output::is_user_configured |
( |
|
$user = null | ) |
|
Are the message processor's user specific settings configured?
- Parameters
-
stdClass | $user | the user object, defaults to $USER. |
- Return values
-
bool | True if the user has all necessary settings in their messaging preferences |
Reimplemented in message_output_jabber.
◆ load_data()
message_output::load_data |
( |
& |
$preferences, |
|
|
|
$userid |
|
) |
| |
|
abstract |
◆ process_form()
message_output::process_form |
( |
|
$form, |
|
|
& |
$preferences |
|
) |
| |
|
abstract |
◆ send_message()
message_output::send_message |
( |
|
$message | ) |
|
|
abstract |
The documentation for this class was generated from the following file: