PMC-40: Action by Email: Email response configuration

This commit is contained in:
Gustavo Silva
2018-11-14 15:00:10 -04:00
committed by Paula Quispe
parent 29cd1acc59
commit 2c7461b4a1
14 changed files with 1229 additions and 318 deletions

View File

@@ -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;
}
}
}