PMC-40: Action by Email: Email response configuration
This commit is contained in:
committed by
Paula Quispe
parent
29cd1acc59
commit
2c7461b4a1
@@ -300,5 +300,24 @@ class AppMessage extends BaseAppMessage
|
||||
|
||||
return $messages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the APP_MSG_BODY related to the key
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getAppMsgBodyByKey($key)
|
||||
{
|
||||
try {
|
||||
$appMessage = AppMessagePeer::retrieveByPk($key);
|
||||
|
||||
return $appMessage->getAppMsgBody();
|
||||
} catch (Exception $error) {
|
||||
throw $error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user