ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This plugin all WebDAV-sync capabilities to the Server. More...
Public Member Functions | |
getPluginName () | |
Returns a plugin name. More... | |
initialize (DAV\Server $server) | |
Initializes the plugin. More... | |
getSupportedReportSet ($uri) | |
Returns a list of reports this plugin supports. More... | |
syncCollection ($uri, SyncCollectionReport $report) | |
This method handles the {DAV:}sync-collection HTTP REPORT. More... | |
propFind (DAV\PropFind $propFind, DAV\INode $node) | |
This method is triggered whenever properties are requested for a node. More... | |
validateTokens (RequestInterface $request, &$conditions) | |
The validateTokens event is triggered before every request. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
Public Member Functions inherited from Sabre\DAV\ServerPlugin | |
initialize (Server $server) | |
This initializes the plugin. More... | |
getFeatures () | |
This method should return a list of server-features. More... | |
getHTTPMethods ($path) | |
Use this method to tell the server this plugin defines additional HTTP methods. More... | |
getPluginName () | |
Returns a plugin name. More... | |
getSupportedReportSet ($uri) | |
Returns a list of reports this plugin supports. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
Data Fields | |
const | SYNCTOKEN_PREFIX = 'http://sabre.io/ns/sync/' |
Protected Member Functions | |
sendSyncCollectionResponse ($syncToken, $collectionUrl, array $added, array $modified, array $deleted, array $properties) | |
Sends the response to a sync-collection request. More... | |
Protected Attributes | |
$server | |
This plugin all WebDAV-sync capabilities to the Server.
WebDAV-sync is defined by rfc6578
The sync capabilities only work with collections that implement Sabre.
Definition at line 21 of file Plugin.php.
Sabre\DAV\Sync\Plugin::getPluginInfo | ( | ) |
Returns a bunch of meta-data about the plugin.
Providing this information is optional, and is mainly displayed by the Browser plugin.
The description key in the returned array may contain html and will not be sanitized.
Definition at line 267 of file Plugin.php.
References Sabre\DAV\Sync\Plugin\getPluginName().
Sabre\DAV\Sync\Plugin::getPluginName | ( | ) |
Returns a plugin name.
Using this name other plugins will be able to access other plugins using ::getPlugin
Definition at line 40 of file Plugin.php.
Referenced by Sabre\DAV\Sync\Plugin\getPluginInfo().
Sabre\DAV\Sync\Plugin::getSupportedReportSet | ( | $uri | ) |
Returns a list of reports this plugin supports.
This will be used in the {DAV:}supported-report-set property. Note that you still need to subscribe to the 'report' event to actually implement them
string | $uri |
Definition at line 86 of file Plugin.php.
References Sabre\DAV\Sync\ISyncCollection\getSyncToken().
Sabre\DAV\Sync\Plugin::initialize | ( | DAV\Server | $server | ) |
Initializes the plugin.
This is when the plugin registers it's hooks.
DAV\Server | $server |
Definition at line 54 of file Plugin.php.
References Sabre\DAV\Sync\Plugin\$server.
Sabre\DAV\Sync\Plugin::propFind | ( | DAV\PropFind | $propFind, |
DAV\INode | $node | ||
) |
This method is triggered whenever properties are requested for a node.
We intercept this to see if we must return a {DAV:}sync-token.
DAV\PropFind | $propFind | |
DAV\INode | $node |
Definition at line 208 of file Plugin.php.
References PHPMailer\PHPMailer\$token.
|
protected |
Sends the response to a sync-collection request.
string | $syncToken | |
string | $collectionUrl | |
array | $added | |
array | $modified | |
array | $deleted | |
array | $properties |
Definition at line 160 of file Plugin.php.
Referenced by Sabre\DAV\Sync\Plugin\syncCollection().
Sabre\DAV\Sync\Plugin::syncCollection | ( | $uri, | |
SyncCollectionReport | $report | ||
) |
This method handles the {DAV:}sync-collection HTTP REPORT.
string | $uri | |
SyncCollectionReport | $report |
Definition at line 107 of file Plugin.php.
References PHPMailer\PHPMailer\$token, and Sabre\DAV\Sync\Plugin\sendSyncCollectionResponse().
Sabre\DAV\Sync\Plugin::validateTokens | ( | RequestInterface | $request, |
& | $conditions | ||
) |
The validateTokens event is triggered before every request.
It's a moment where this plugin can check all the supplied lock tokens in the If: header, and check if they are valid.
RequestInterface | $request | |
array | $conditions |
Definition at line 229 of file Plugin.php.
References $ii, PHPMailer\PHPMailer\$token, and Sabre\DAV\Sync\ISyncCollection\getSyncToken().
|
protected |
Definition at line 28 of file Plugin.php.
Referenced by Sabre\DAV\Sync\Plugin\initialize().
const Sabre\DAV\Sync\Plugin::SYNCTOKEN_PREFIX = 'http://sabre.io/ns/sync/' |
Definition at line 30 of file Plugin.php.