Commit 455488d10fe2116e444fd2a66d7820901a700a56
1 parent
2f1e1152
added getContentDisplayPath method
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1199 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
11 additions
and
0 deletions
lib/subscriptions/Subscription.inc
| ... | ... | @@ -132,6 +132,17 @@ class Subscription { |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | + * Returns the display path to the subscription content | |
| 136 | + */ | |
| 137 | + function getContentDisplayPath() { | |
| 138 | + if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("DocumentSubscription")) { | |
| 139 | + return Document::getDocumentDisplayPath($this->iExternalID); | |
| 140 | + } else if ($this->iSubscriptionType == SubscriptionConstants::subscriptionType("FolderSubscription")) { | |
| 141 | + return Folder::getFolderDisplayPath($this->iExternalID); | |
| 142 | + } | |
| 143 | + } | |
| 144 | + | |
| 145 | + /** | |
| 135 | 146 | * Returns the link to view the subscription content |
| 136 | 147 | */ |
| 137 | 148 | function getContentLink() { | ... | ... |