Commit d41c12fbd23b024130185e13cf2704a5376fee53
1 parent
3932444e
added additional content for 2 removal cases- parent folder subscriber or content subscriber
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1272 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
15 additions
and
5 deletions
lib/subscriptions/AlertContent.inc
| ... | ... | @@ -27,9 +27,11 @@ class AlertContent { |
| 27 | 27 | function get($iSubscriptionAlertType, $aValues) { |
| 28 | 28 | $sSubject = "MRC DMS Subscription Alert- "; |
| 29 | 29 | $aAlertSubject = array(SubscriptionConstants::subscriptionAlertType("AddFolder") => $sSubject . "New Folder", |
| 30 | - SubscriptionConstants::subscriptionAlertType("RemoveFolder") => $sSubject . "Removed Folder", | |
| 30 | + SubscriptionConstants::subscriptionAlertType("RemoveSubscribedFolder") => $sSubject . "Removed Folder", | |
| 31 | + SubscriptionConstants::subscriptionAlertType("RemoveChildFolder") => $sSubject . "Removed Folder", | |
| 31 | 32 | SubscriptionConstants::subscriptionAlertType("AddDocument") => $sSubject . "New Document", |
| 32 | - SubscriptionConstants::subscriptionAlertType("RemoveDocument") => $sSubject . "Removed Document", | |
| 33 | + SubscriptionConstants::subscriptionAlertType("RemoveSubscribedDocument") => $sSubject . "Removed Document", | |
| 34 | + SubscriptionConstants::subscriptionAlertType("RemoveChildDocument") => $sSubject . "Removed Document", | |
| 33 | 35 | SubscriptionConstants::subscriptionAlertType("ModifyDocument") => $sSubject . "Modified Document", |
| 34 | 36 | SubscriptionConstants::subscriptionAlertType("CheckInDocument") => $sSubject . "Checked In Document", |
| 35 | 37 | SubscriptionConstants::subscriptionAlertType("CheckOutDocument") => $sSubject . "Checked Out Document"); |
| ... | ... | @@ -41,7 +43,11 @@ class AlertContent { |
| 41 | 43 | "Please clear this subscription alert by clicking on the following link: " . |
| 42 | 44 | generateLink($sViewAlertUrl, $sViewAlertParams, $aValues["parentFolderName"]), |
| 43 | 45 | |
| 44 | - SubscriptionConstants::subscriptionAlertType("RemoveFolder") => | |
| 46 | + SubscriptionConstants::subscriptionAlertType("RemoveSubscribedFolder") => | |
| 47 | + "The folder '" . $aValues["removedFolderName"] . "' has been removed from folder '" . $aValues["parentFolderName"] . "'.<br>" . | |
| 48 | + "Your subscription to this folder has been removed also.", | |
| 49 | + | |
| 50 | + SubscriptionConstants::subscriptionAlertType("RemoveChildFolder") => | |
| 45 | 51 | "The folder '" . $aValues["removedFolderName"] . "' has been removed from folder '" . $aValues["parentFolderName"] . "'.<br>" . |
| 46 | 52 | "Please clear this subscription alert by clicking on the following link: " . |
| 47 | 53 | generateLink($sViewAlertUrl, $sViewAlertParams, $aValues["parentFolderName"]), |
| ... | ... | @@ -51,10 +57,14 @@ class AlertContent { |
| 51 | 57 | "Please clear this subscription alert by clicking on the following link: " . |
| 52 | 58 | generateLink($sViewAlertUrl, $sViewAlertParams, $aValues["newDocumentName"]), |
| 53 | 59 | |
| 54 | - SubscriptionConstants::subscriptionAlertType("RemoveDocument") => | |
| 60 | + SubscriptionConstants::subscriptionAlertType("RemoveChildDocument") => | |
| 55 | 61 | "The document '" . $aValues["removedDocumentName"] . "' has been removed from folder '" . $aValues["folderName"] . "'.<br>" . |
| 56 | 62 | "Please clear this subscription alert by clicking on the following link: " . |
| 57 | - generateLink($sViewAlertUrl, $sViewAlertParams, $aValues["folderName"]), | |
| 63 | + generateLink($sViewAlertUrl, $sViewAlertParams, $aValues["removedDocumentName"]), | |
| 64 | + | |
| 65 | + SubscriptionConstants::subscriptionAlertType("RemoveSubscribedDocument") => | |
| 66 | + "The document '" . $aValues["removedDocumentName"] . "' has been removed from folder '" . $aValues["folderName"] . "'.<br>" . | |
| 67 | + "Your subscription to this document has been removed also.", | |
| 58 | 68 | |
| 59 | 69 | SubscriptionConstants::subscriptionAlertType("ModifyDocument") => |
| 60 | 70 | "The document '" . $aValues["modifiedDocumentName"] . "' has been modified.<br>" . | ... | ... |