A Handler to process replies to forum posts.
More...
A Handler to process replies to forum posts.
- Copyright
- 2014 Andrew Nicols
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __get()
core\message\inbound\handler::__get |
( |
|
$key | ) |
|
|
inherited |
Magic getter to fetch the specified key.
- Parameters
-
string | $key | The name of the key to retrieve |
◆ can_change_defaultexpiration()
core\message\inbound\handler::can_change_defaultexpiration |
( |
| ) |
|
|
inherited |
Whether the current handler allows changes to expiry of the generated email address.
By default this will return true, but for some handlers it may be necessary to disallow such changes.
- Return values
-
Reimplemented in core\message\inbound\private_files_handler.
◆ can_change_enabled()
core\message\inbound\handler::can_change_enabled |
( |
| ) |
|
|
inherited |
Whether this handler can be disabled (or enabled).
By default this will return true, but for some handlers it may be necessary to disallow such changes. For example, a core handler to handle rejected mail validation should not be disabled.
- Return values
-
◆ can_change_validateaddress()
core\message\inbound\handler::can_change_validateaddress |
( |
| ) |
|
|
inherited |
◆ get_description()
mod_forum\message\inbound\reply_handler::get_description |
( |
| ) |
|
◆ get_name()
mod_forum\message\inbound\reply_handler::get_name |
( |
| ) |
|
Return a short name for the current handler.
This appears in the admin pages as a human-readable name.
- Return values
-
Reimplemented from core\message\inbound\handler.
◆ get_success_message()
mod_forum\message\inbound\reply_handler::get_success_message |
( |
\stdClass |
$messagedata, |
|
|
|
$handlerresult |
|
) |
| |
Return the content of any success notification to be sent.
Both an HTML and Plain Text variant must be provided.
- Parameters
-
stdClass | $messagedata | The message data. |
stdClass | $handlerresult | The record for the newly created post. |
- Return values
-
stdClass | with keys html and plain . |
Reimplemented from core\message\inbound\handler.
◆ process_attachment()
mod_forum\message\inbound\reply_handler::process_attachment |
( |
|
$acceptedtypes, |
|
|
context_user |
$context, |
|
|
|
$itemid, |
|
|
stdClass |
$attachment |
|
) |
| |
|
protected |
Process attachments included in a message.
- Parameters
-
string[] | $acceptedtypes | String The mimetypes of the acceptable attachment types. |
context_user | $context | context_user The context of the user creating this attachment. |
int | $itemid | int The itemid to store this attachment under. |
stdClass | $attachment | stdClass The Attachment data to store. |
- Return values
-
◆ process_message()
mod_forum\message\inbound\reply_handler::process_message |
( |
\stdClass |
$record, |
|
|
stdClass |
$messagedata |
|
) |
| |
◆ remove_quoted_text()
static core\message\inbound\handler::remove_quoted_text |
( |
|
$messagedata | ) |
|
|
staticprotectedinherited |
Remove quoted message string from the text (NOT HTML) message.
- Parameters
-
stdClass | $messagedata | The Inbound Message record |
- Return values
-
array | message and message format to use. |
◆ set_component()
core\message\inbound\handler::set_component |
( |
|
$component | ) |
|
|
inherited |
Set the component name.
- Parameters
-
string | $component | The component to set |
- Return values
-
string | The newly set component |
◆ set_defaultexpiration()
core\message\inbound\handler::set_defaultexpiration |
( |
|
$period | ) |
|
|
inherited |
Set the default validity for new keys.
- Parameters
-
int | $period | The time in seconds before a key expires |
- Return values
-
◆ set_enabled()
core\message\inbound\handler::set_enabled |
( |
|
$enabled | ) |
|
|
inherited |
Set the enabled name.
- Parameters
-
bool | $enabled | The new state of enabled |
- Return values
-
◆ set_id()
core\message\inbound\handler::set_id |
( |
|
$id | ) |
|
|
inherited |
Set the id name.
- Parameters
-
- Return values
-
◆ set_validateaddress()
core\message\inbound\handler::set_validateaddress |
( |
|
$validateaddress | ) |
|
|
inherited |
Set whether validation of the address is required.
- Parameters
-
bool | $validateaddress | The new state of validateaddress |
- Return values
-
The documentation for this class was generated from the following file: