MDL-83518 core_message: Add sms specific property
This commit is contained in:
@@ -96,6 +96,9 @@ class message {
|
||||
/** @var string Complete message in html format. */
|
||||
private $fullmessagehtml;
|
||||
|
||||
/** @var string Complete message in sms format. */
|
||||
private $fullmessagesms;
|
||||
|
||||
/** @var string Smaller version of the message. */
|
||||
private $smallmessage;
|
||||
|
||||
@@ -149,6 +152,7 @@ class message {
|
||||
'fullmessage',
|
||||
'fullmessageformat',
|
||||
'fullmessagehtml',
|
||||
'fullmessagesms',
|
||||
'smallmessage',
|
||||
'notification',
|
||||
'contexturl',
|
||||
@@ -197,6 +201,21 @@ class message {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fullmessagesms content including any processor specific content.
|
||||
*
|
||||
* @param string $processorname Name of the processor.
|
||||
*
|
||||
* @return mixed|string
|
||||
*/
|
||||
protected function get_fullmessagesms(string $processorname = '') {
|
||||
if (!empty($processorname) && isset($this->additionalcontent[$processorname])) {
|
||||
return $this->get_message_with_additional_content($processorname, 'fullmessagesms');
|
||||
} else {
|
||||
return $this->fullmessagesms;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Smallmessage content including any processor specific content.
|
||||
*
|
||||
@@ -338,4 +357,4 @@ class message {
|
||||
}
|
||||
return $eventdata;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user