diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-10-16 10:31:38 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-11-01 02:15:07 +0100 |
commit | f377a61f90065439e2f176669079c00d522adf12 (patch) | |
tree | 25ea0a4c30facec9c660d1a044be175505906c01 /lib/private/Share20/Share.php | |
parent | d0411b2369e285b8c82e49294244032ca9624075 (diff) | |
download | nextcloud-server-f377a61f90065439e2f176669079c00d522adf12.tar.gz nextcloud-server-f377a61f90065439e2f176669079c00d522adf12.zip |
allow to add labels to shares
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/Share20/Share.php')
-rw-r--r-- | lib/private/Share20/Share.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index e218360f87b..f9b548c1adf 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -76,6 +76,8 @@ class Share implements \OCP\Share\IShare { private $shareTime; /** @var bool */ private $mailSend; + /** @var string */ + private $label = ''; /** @var IRootFolder */ private $rootFolder; @@ -337,6 +339,21 @@ class Share implements \OCP\Share\IShare { /** * @inheritdoc */ + public function setLabel($label) { + $this->label = $label; + return $this; + } + + /** + * @inheritdoc + */ + public function getLabel() { + return $this->label; + } + + /** + * @inheritdoc + */ public function setExpirationDate($expireDate) { //TODO checks |