Seperate query classes from xml classes to allow specifying more information in the query

This commit is contained in:
Robin Appelman 2018-01-25 14:48:02 +01:00
commit 5ad4d24b89
17 changed files with 509 additions and 112 deletions

View file

@ -26,6 +26,7 @@ use Sabre\DAV\INode;
use Sabre\DAV\SimpleFile;
use SearchDAV\Backend\ISearchBackend;
use SearchDAV\Backend\SearchResult;
use SearchDAV\Query\Query;
use SearchDAV\XML\BasicSearch;
use SearchDAV\Backend\SearchPropertyDefinition;
@ -47,7 +48,7 @@ class DummyBackend implements ISearchBackend {
];
}
public function search(BasicSearch $query) {
public function search(Query $query) {
return [
new SearchResult(new SimpleFile('foo.txt', 'foobar', 'text/plain'), '/bar/foo.txt')
];