summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-15 09:52:04 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-06 14:53:43 +0100
commit4f2e84a0eccfb5e85102a30a93799522e510a375 (patch)
tree5bc640dce624cbddea0514adddf04ae00ad1b959 /lib/private
parent6c77d1734e3b3470a8b7590c882ba4a744522aa8 (diff)
downloadnextcloud-server-4f2e84a0eccfb5e85102a30a93799522e510a375.tar.gz
nextcloud-server-4f2e84a0eccfb5e85102a30a93799522e510a375.zip
[Share 2.0] Update share class
More getters and setters are required to properly create shares
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/share20/ishare.php35
-rw-r--r--lib/private/share20/share.php2
2 files changed, 35 insertions, 2 deletions
diff --git a/lib/private/share20/ishare.php b/lib/private/share20/ishare.php
index 2e54da7a029..a149c578fb2 100644
--- a/lib/private/share20/ishare.php
+++ b/lib/private/share20/ishare.php
@@ -101,7 +101,7 @@ interface IShare {
* @param \DateTime $expireDate
* @return Share The modified object
*/
- public function setExpirationDate(\DateTime $expireDate);
+ public function setExpirationDate($expireDate);
/**
* Get the share expiration date
@@ -111,6 +111,14 @@ interface IShare {
public function getExpirationDate();
/**
+ * Set the sharer of the path
+ *
+ * @param IUser|string $sharedBy
+ * @return Share The modified object
+ */
+ public function setSharedBy($sharedBy);
+
+ /**
* Get share sharer
*
* @return IUser|string
@@ -118,6 +126,15 @@ interface IShare {
public function getSharedBy();
/**
+ * Set the original share owner (who owns the path)
+ *
+ * @param IUser|string
+ *
+ * @return Share The modified object
+ */
+ public function setShareOwner($shareOwner);
+
+ /**
* Get the original share owner (who owns the path)
*
* @return IUser|string
@@ -141,6 +158,14 @@ interface IShare {
public function getPassword();
/**
+ * Set the token
+ *
+ * @param string $token
+ * @return Share The modified object
+ */
+ public function setToken($token);
+
+ /**
* Get the token
*
* @return string
@@ -155,6 +180,14 @@ interface IShare {
public function getParent();
/**
+ * Set the target of this share
+ *
+ * @param string $target
+ * @return Share The modified object
+ */
+ public function setTarget($target);
+
+ /**
* Get the target of this share
*
* @return string
diff --git a/lib/private/share20/share.php b/lib/private/share20/share.php
index b7ce38ac61d..4827000eefa 100644
--- a/lib/private/share20/share.php
+++ b/lib/private/share20/share.php
@@ -163,7 +163,7 @@ class Share implements IShare {
* @param \DateTime $expireDate
* @return Share The modified object
*/
- public function setExpirationDate(\DateTime $expireDate) {
+ public function setExpirationDate($expireDate) {
//TODO checks
$this->expireDate = $expireDate;