summaryrefslogtreecommitdiffstats
path: root/lib/private/files/node
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-11-24 15:54:42 +0100
committerRobin Appelman <icewind@owncloud.com>2014-12-04 16:47:27 +0100
commitf4701d7721453b8356a5be401bb5063d22f851c6 (patch)
treeb27f76b8c02e658ac5e4b599a0ee4e4839b5de19 /lib/private/files/node
parentf3213571bb2609a7f279fd5254f872083b3ea91a (diff)
downloadnextcloud-server-f4701d7721453b8356a5be401bb5063d22f851c6.tar.gz
nextcloud-server-f4701d7721453b8356a5be401bb5063d22f851c6.zip
Add public api for mount configurations
Diffstat (limited to 'lib/private/files/node')
-rw-r--r--lib/private/files/node/folder.php2
-rw-r--r--lib/private/files/node/root.php14
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index 54a699be532..6fdcff13e1c 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -301,7 +301,7 @@ class Folder extends Node implements \OCP\Files\Folder {
$nodes = array();
foreach ($mounts as $mount) {
/**
- * @var \OC\Files\Mount\Mount $mount
+ * @var \OC\Files\Mount\MountPoint $mount
*/
if ($mount->getStorage()) {
$cache = $mount->getStorage()->getCache();
diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php
index 1e8387dc5cb..35132f5458d 100644
--- a/lib/private/files/node/root.php
+++ b/lib/private/files/node/root.php
@@ -10,7 +10,7 @@ namespace OC\Files\Node;
use OC\Files\Cache\Cache;
use OC\Files\Mount\Manager;
-use OC\Files\Mount\Mount;
+use OC\Files\Mount\MountPoint;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OC\Hooks\Emitter;
@@ -106,13 +106,13 @@ class Root extends Folder implements Emitter {
* @param array $arguments
*/
public function mount($storage, $mountPoint, $arguments = array()) {
- $mount = new Mount($storage, $mountPoint, $arguments);
+ $mount = new MountPoint($storage, $mountPoint, $arguments);
$this->mountManager->addMount($mount);
}
/**
* @param string $mountPoint
- * @return \OC\Files\Mount\Mount
+ * @return \OC\Files\Mount\MountPoint
*/
public function getMount($mountPoint) {
return $this->mountManager->find($mountPoint);
@@ -120,7 +120,7 @@ class Root extends Folder implements Emitter {
/**
* @param string $mountPoint
- * @return \OC\Files\Mount\Mount[]
+ * @return \OC\Files\Mount\MountPoint[]
*/
public function getMountsIn($mountPoint) {
return $this->mountManager->findIn($mountPoint);
@@ -128,7 +128,7 @@ class Root extends Folder implements Emitter {
/**
* @param string $storageId
- * @return \OC\Files\Mount\Mount[]
+ * @return \OC\Files\Mount\MountPoint[]
*/
public function getMountByStorageId($storageId) {
return $this->mountManager->findByStorageId($storageId);
@@ -136,14 +136,14 @@ class Root extends Folder implements Emitter {
/**
* @param int $numericId
- * @return Mount[]
+ * @return MountPoint[]
*/
public function getMountByNumericStorageId($numericId) {
return $this->mountManager->findByNumericId($numericId);
}
/**
- * @param \OC\Files\Mount\Mount $mount
+ * @param \OC\Files\Mount\MountPoint $mount
*/
public function unMount($mount) {
$this->mountManager->remove($mount);