add comment that toGroup and toList are deprecated

This commit is contained in:
Uwe Steinmann 2021-01-29 08:56:01 +01:00
parent fdde3e29c5
commit e6790f6b2f

View File

@ -197,6 +197,11 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
}
} /* }}} */
/**
* This method is deprecated!
*
* The dispatching is now done in SeedDMS_NotificationService::toGroup()
*/
function toGroup($sender, $groupRecipient, $subject, $message, $params=array()) { /* {{{ */
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
(!is_object($groupRecipient) || strcasecmp(get_class($groupRecipient), $this->_dms->getClassname('group')))) {
@ -210,6 +215,11 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
return true;
} /* }}} */
/**
* This method is deprecated!
*
* The dispatching is now done in SeedDMS_NotificationService::toList()
*/
function toList($sender, $recipients, $subject, $message, $params=array()) { /* {{{ */
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
(!is_array($recipients) && count($recipients)==0)) {