mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 09:34:08 +02:00
Seperate query classes from xml classes to allow specifying more information in the query
This commit is contained in:
parent
82bcf2cebb
commit
5ad4d24b89
17 changed files with 509 additions and 112 deletions
|
|
@ -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')
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue