diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-06-25 03:00:36 +0300 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-06-25 03:00:36 +0300 |
commit | 9c728d1c298b762f4ec1b127e26ecde9d25f36b8 (patch) | |
tree | 21e91cf0a257418ea843249a971d1e3a38686fcb /environment | |
parent | f626a05841a1410b562c6dd2962e535faf513853 (diff) | |
parent | 2f83db3d5fb1c20fbbda93ef68661597bd0ee837 (diff) |
Merge pull request #146 from owncloud/add-to-owncloud
Adds the form which allows a user to add the shared files to his ownCloud
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 * |