diff options
author | Olivier Paroz <github@oparoz.com> | 2015-05-20 20:28:02 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-06-22 07:21:21 +0300 |
commit | 2f83db3d5fb1c20fbbda93ef68661597bd0ee837 (patch) | |
tree | a5f52862ad0a875b79a0fcd8ad94e8fede838c1e /environment | |
parent | 5f53377c3e9f098e086ee18a699aa1d20294ef71 (diff) |
Adds the form which allows a user to add the shared files to his ownCloud
Solution for #144
Diffstat (limited to 'environment')
-rw-r--r-- | environment/environment.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/environment/environment.php b/environment/environment.php index a5e3a8ff..d116b60a 100644 --- a/environment/environment.php +++ b/environment/environment.php @@ -79,6 +79,10 @@ class Environment { * @var string */ private $folderName; + /** + * @var string + */ + private $shareWith; /*** * Constructor @@ -123,6 +127,7 @@ class Environment { $this->folderName = $linkItem['file_target']; $this->userId = $rootLinkItem['uid_owner']; + $this->shareWith = $linkItem['share_with']; } /** @@ -237,6 +242,15 @@ class Environment { } /** + * Returns if the share is protected (share_with === true) + * + * @return string + */ + public function isShareProtected() { + return $this->shareWith; + } + + /** * Returns the path which goes from the file, up to the user folder, based on a node: * parent_folder/current_folder/my_file * |