add version to document update mail, add stub for remove version mail

This commit is contained in:
Uwe Steinmann 2021-05-19 08:32:38 +02:00
parent 97c001acbe
commit 0852d10df4

View File

@ -284,6 +284,7 @@ class SeedDMS_NotificationService {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
$params['comment'] = $document->getComment();
$params['version'] = $lc->getVersion();
$params['version_comment'] = $lc->getComment();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
@ -331,6 +332,15 @@ class SeedDMS_NotificationService {
}
} /* }}} */
/**
* This notification is sent when a document version is deleted.
* Keep in mind that $document refers to a document which has just been
* deleted from the database, but all the data needed is still in the
* object.
*/
public function sendDeleteDocumentVersionMail($document, $user) { /* {{{ */
} /* }}} */
/**
* This notification is sent when a new folder is created.
*/