icewind/searchdav
最新稳定版本:v3.2.0
Composer 安装命令:
composer require icewind/searchdav
包简介
sabre/dav plugin to implement rfc5323 SEARCH
README 文档
README
A sabre/dav plugin to implement rfc5323 SEARCH
Usage
The plugin implements the DAV specific parts of the rfc but leaves the actual search implementation to the user of the plugin.
This is done by implementing the \SearchDAV\Backend\ISearchBackend interface and passing
it to the plugin during construction.
Basic usage
$server = new \Sabre\DAV\Server();
$server->addPlugin(new \SearchDAV\DAV\SearchPlugin(new MySearchBackend()));
$server->exec();
Terms
The rfc uses the following terms to describe various part of search handling
- Search scope: the DAV resource that is being queries.
Search arbiter: the end point to which the SEARCH request can be made.
Note that a single search arbiter can support searching in multiple scopes
Search grammar: The type of search query that is supported by a scope
rfc5323 requires any implementation to at least implement "basicsearch" which is also currently the only supported grammar in this plugin
Search schema: Details on how to use a search grammar, such as the supported properties that can be searched for
ISearchBackend
The ISearchBackend defines the arbiter end point, which scopes are valid to query,
the search schema that is supported and implements the actual search.
For a full list of methods required and their description see ISearchBackend.php
Query
The Query class defines the query that was made by the client and consists of four parts:
- select: the properties are requested.
- from: the scope(s) in which the search should be made.
- where: the filter parameters for the search.
- orderBy: how the search results should be ordered.
For further information about these elements see
Query.php, Scope.php,
Operator.php and Order.php
统计信息
- 总下载量: 14.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2017-02-01
