aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/share20/share.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-06 12:05:19 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-16 13:32:28 +0100
commit1e9fc332125aa8e730c3cdccd88102cfcd6bce9d (patch)
tree7345388bab10435c94c382ddf172cbe1551d4bf7 /lib/private/share20/share.php
parent5e3d29b661e5fb8aa40943a6dec621e3343092f3 (diff)
downloadnextcloud-server-1e9fc332125aa8e730c3cdccd88102cfcd6bce9d.tar.gz
nextcloud-server-1e9fc332125aa8e730c3cdccd88102cfcd6bce9d.zip
[Share2.0] OCS Share API getShare uses new code
Diffstat (limited to 'lib/private/share20/share.php')
-rw-r--r--lib/private/share20/share.php57
1 files changed, 45 insertions, 12 deletions
diff --git a/lib/private/share20/share.php b/lib/private/share20/share.php
index 989edd3c079..4200816799e 100644
--- a/lib/private/share20/share.php
+++ b/lib/private/share20/share.php
@@ -28,39 +28,32 @@ class Share implements IShare {
/** @var string */
private $id;
-
/** @var Node */
private $path;
-
/** @var int */
private $shareType;
-
/** @var IUser|IGroup|string */
private $sharedWith;
-
/** @var IUser|string */
private $sharedBy;
-
/** @var IUser|string */
private $shareOwner;
-
/** @var int */
private $permissions;
-
/** @var \DateTime */
private $expireDate;
-
/** @var string */
private $password;
-
/** @var string */
private $token;
-
/** @var int */
private $parent;
-
/** @var string */
private $target;
+ /** @var int */
+ private $shareTime;
+ /** @var bool */
+ private $mailSend;
/**
* Set the id of the share
@@ -252,7 +245,7 @@ class Share implements IShare {
*
* @return string
*/
- public function getPassword($password) {
+ public function getPassword() {
return $this->password;
}
@@ -315,4 +308,44 @@ class Share implements IShare {
public function getTarget() {
return $this->target;
}
+
+ /**
+ * Set the time this share was created
+ *
+ * @param int $shareTime
+ * @return Share The modified object
+ */
+ public function setShareTime($shareTime) {
+ $this->shareTime = $shareTime;
+ return $this;
+ }
+
+ /**
+ * Get the timestamp this share was created
+ *
+ * @return int
+ */
+ public function getSharetime() {
+ return $this->shareTime;
+ }
+
+ /**
+ * Set mailSend
+ *
+ * @param bool $mailSend
+ * @return Share The modified object
+ */
+ public function setMailSend($mailSend) {
+ $this->mailSend = $mailSend;
+ return $this;
+ }
+
+ /**
+ * Get mailSend
+ *
+ * @return bool
+ */
+ public function getMailSend() {
+ return $this->mailSend;
+ }
}