@@ -104,6 +104,10 @@ |
||
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $href |
|
| 109 | + * @param string $path |
|
| 110 | + */ |
|
| 107 | 111 | public function getPropertyDefinitionsForScope($href, $path) { |
| 108 | 112 | // all valid scopes support the same schema |
| 109 | 113 | |
@@ -420,6 +420,9 @@ discard block |
||
| 420 | 420 | } |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | + /** |
|
| 424 | + * @param string $path |
|
| 425 | + */ |
|
| 423 | 426 | private function getParentPath($path) { |
| 424 | 427 | $parent = dirname($path); |
| 425 | 428 | if ($parent === '.') { |
@@ -598,7 +601,7 @@ discard block |
||
| 598 | 601 | * search for files matching $pattern |
| 599 | 602 | * |
| 600 | 603 | * @param string $pattern the search pattern using SQL search syntax (e.g. '%searchstring%') |
| 601 | - * @return ICacheEntry[] an array of cache entries where the name matches the search pattern |
|
| 604 | + * @return CacheEntry[] an array of cache entries where the name matches the search pattern |
|
| 602 | 605 | */ |
| 603 | 606 | public function search($pattern) { |
| 604 | 607 | // normalize pattern |
@@ -639,7 +642,7 @@ discard block |
||
| 639 | 642 | * |
| 640 | 643 | * @param string $mimetype either a full mimetype to search ('text/plain') or only the first part of a mimetype ('image') |
| 641 | 644 | * where it will search for all mimetypes in the group ('image/*') |
| 642 | - * @return ICacheEntry[] an array of cache entries where the mimetype matches the search |
|
| 645 | + * @return CacheEntry[] an array of cache entries where the mimetype matches the search |
|
| 643 | 646 | */ |
| 644 | 647 | public function searchByMime($mimetype) { |
| 645 | 648 | if (strpos($mimetype, '/')) { |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | use OC\Files\Cache\CacheEntry; |
| 23 | 23 | use OCP\Constants; |
| 24 | 24 | use OCP\Files\Cache\ICache; |
| 25 | -use OCP\Files\Cache\ICacheEntry; |
|
| 26 | 25 | use OCP\Files\FileInfo; |
| 27 | 26 | use OCP\Files\Search\ISearchQuery; |
| 28 | 27 | |