summaryrefslogtreecommitdiffstats
path: root/lib/private/files/node
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-04 14:01:15 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-11 17:38:50 +0100
commit25dde7e93bc648ec8cd14b8f2711d50f77d8d1bf (patch)
treef45b35dd647870b6c3aeded3e8e11faa41effcba /lib/private/files/node
parent745d8706b973ff0494af54f183acc0da361f0e83 (diff)
downloadnextcloud-server-25dde7e93bc648ec8cd14b8f2711d50f77d8d1bf.tar.gz
nextcloud-server-25dde7e93bc648ec8cd14b8f2711d50f77d8d1bf.zip
Added searchByTags to view, storage and cache
Diffstat (limited to 'lib/private/files/node')
-rw-r--r--lib/private/files/node/folder.php10
-rw-r--r--lib/private/files/node/nonexistingfolder.php4
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index 6fdcff13e1c..a65e641388d 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -237,6 +237,16 @@ class Folder extends Node implements \OCP\Files\Folder {
}
/**
+ * search for files by tag
+ *
+ * @param string $tag
+ * @return Node[]
+ */
+ public function searchByTag($tag) {
+ return $this->searchCommon($tag, 'searchByTag');
+ }
+
+ /**
* @param string $query
* @param string $method
* @return \OC\Files\Node\Node[]
diff --git a/lib/private/files/node/nonexistingfolder.php b/lib/private/files/node/nonexistingfolder.php
index 0346cbf1e21..9d452a94b9c 100644
--- a/lib/private/files/node/nonexistingfolder.php
+++ b/lib/private/files/node/nonexistingfolder.php
@@ -99,6 +99,10 @@ class NonExistingFolder extends Folder {
throw new NotFoundException();
}
+ public function searchByTag($mime) {
+ throw new NotFoundException();
+ }
+
public function getById($id) {
throw new NotFoundException();
}