summaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-23 16:42:33 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-25 13:38:18 +0200
commitecc1f92bb6c7ac3121c35affad607a344a79ef52 (patch)
treefaf5bb913b3750f809cdd6e7a4ab6f835a2dca6e /lib/public/share.php
parent9834e3854201d68fbd5dcbef09122c48cc5bcb10 (diff)
downloadnextcloud-server-ecc1f92bb6c7ac3121c35affad607a344a79ef52.tar.gz
nextcloud-server-ecc1f92bb6c7ac3121c35affad607a344a79ef52.zip
add OCS api call to set expire date for link shares
Diffstat (limited to 'lib/public/share.php')
-rw-r--r--lib/public/share.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 8566a38c61e..c0939dce53f 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -298,10 +298,11 @@ class Share extends \OC\Share\Constants {
* @param string $itemType
* @param string $itemSource
* @param string $date expiration date
+ * @param int $shareTime timestamp from when the file was shared
* @return boolean
*/
- public static function setExpirationDate($itemType, $itemSource, $date) {
- return \OC\Share\Share::setExpirationDate($itemType, $itemSource, $date);
+ public static function setExpirationDate($itemType, $itemSource, $date, $shareTime = null) {
+ return \OC\Share\Share::setExpirationDate($itemType, $itemSource, $date, $shareTime);
}
/**