ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This plugin implements HTTP requests and properties related to: More...
Public Member Functions | |
getFeatures () | |
This method should return a list of server-features. More... | |
getPluginName () | |
Returns a plugin name. More... | |
initialize (Server $server) | |
This initializes the plugin. More... | |
shareResource ($path, array $sharees) | |
Updates the list of sharees on a shared resource. More... | |
propFind (PropFind $propFind, INode $node) | |
This event is triggered when properties are requested for nodes. More... | |
httpPost (RequestInterface $request, ResponseInterface $response) | |
We intercept this to handle POST requests on shared resources. More... | |
getSupportedPrivilegeSet (INode $node, array &$supportedPrivilegeSet) | |
This method is triggered whenever a subsystem reqeuests the privileges hat are supported on a particular node. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
htmlActionsPanel (INode $node, &$output, $path) | |
This method is used to generate HTML output for the DAV. More... | |
browserPostAction ($path, $action, $postVars) | |
This method is triggered for POST actions generated by the browser 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 | ACCESS_NOTSHARED = 0 |
const | ACCESS_SHAREDOWNER = 1 |
const | ACCESS_READ = 2 |
const | ACCESS_READWRITE = 3 |
const | ACCESS_NOACCESS = 4 |
const | INVITE_NORESPONSE = 1 |
const | INVITE_ACCEPTED = 2 |
const | INVITE_DECLINED = 3 |
const | INVITE_INVALID = 4 |
Protected Attributes | |
$server | |
This plugin implements HTTP requests and properties related to:
draft-pot-webdav-resource-sharing
This specification allows people to share webdav resources with others.
Definition at line 27 of file Plugin.php.
Sabre\DAV\Sharing\Plugin::browserPostAction | ( | $path, | |
$action, | |||
$postVars | |||
) |
This method is triggered for POST actions generated by the browser plugin.
string | $path | |
string | $action | |
array | $postVars |
Definition at line 307 of file Plugin.php.
References $action, $path, and Sabre\DAV\Sharing\Plugin\shareResource().
Sabre\DAV\Sharing\Plugin::getFeatures | ( | ) |
This method should return a list of server-features.
This is for example 'versioning' and is added to the DAV: header in an OPTIONS response.
Definition at line 55 of file Plugin.php.
Sabre\DAV\Sharing\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 250 of file Plugin.php.
References Sabre\DAV\Sharing\Plugin\getPluginName().
Sabre\DAV\Sharing\Plugin::getPluginName | ( | ) |
Returns a plugin name.
Using this name other plugins will be able to access other plugins using ::getPlugin
Definition at line 69 of file Plugin.php.
Referenced by Sabre\DAV\Sharing\Plugin\getPluginInfo().
Sabre\DAV\Sharing\Plugin::getSupportedPrivilegeSet | ( | INode | $node, |
array & | $supportedPrivilegeSet | ||
) |
This method is triggered whenever a subsystem reqeuests the privileges hat are supported on a particular node.
We need to add a number of privileges for scheduling purposes.
INode | $node | |
array | $supportedPrivilegeSet |
Definition at line 229 of file Plugin.php.
Sabre\DAV\Sharing\Plugin::htmlActionsPanel | ( | INode | $node, |
& | $output, | ||
$path | |||
) |
This method is used to generate HTML output for the DAV.
INode | $node | |
string | $output | |
string | $path |
Definition at line 269 of file Plugin.php.
References $aclPlugin, Sabre\VObject\$output, and $path.
Sabre\DAV\Sharing\Plugin::httpPost | ( | RequestInterface | $request, |
ResponseInterface | $response | ||
) |
We intercept this to handle POST requests on shared resources.
RequestInterface | $request | |
ResponseInterface | $response |
Definition at line 184 of file Plugin.php.
References $contentType, $message, $path, Sabre\HTTP\MessageInterface\getBody(), Sabre\HTTP\MessageInterface\getHeader(), Sabre\HTTP\RequestInterface\getPath(), Sabre\HTTP\RequestInterface\getUrl(), Sabre\HTTP\MessageInterface\setHeader(), Sabre\HTTP\ResponseInterface\setStatus(), and Sabre\DAV\Sharing\Plugin\shareResource().
Sabre\DAV\Sharing\Plugin::initialize | ( | Server | $server | ) |
This initializes the plugin.
This function is called by Sabre, after addPlugin is called.
This method should set up the required event subscriptions.
Server | $server |
Definition at line 86 of file Plugin.php.
References Sabre\DAV\Sharing\Plugin\$server, and Sabre\Event\EventEmitterInterface\on().
This event is triggered when properties are requested for nodes.
This allows us to inject any sharings-specific properties.
Definition at line 153 of file Plugin.php.
References Sabre\DAV\PropFind\handle().
Sabre\DAV\Sharing\Plugin::shareResource | ( | $path, | |
array | $sharees | ||
) |
Updates the list of sharees on a shared resource.
The sharees array is a list of people that are to be added modified or removed in the list of shares.
string | $path | |
Sharee[] | $sharees |
Definition at line 115 of file Plugin.php.
References $path.
Referenced by Sabre\DAV\Sharing\Plugin\browserPostAction(), and Sabre\DAV\Sharing\Plugin\httpPost().
|
protected |
Definition at line 45 of file Plugin.php.
Referenced by Sabre\DAV\Sharing\Plugin\initialize().
const Sabre\DAV\Sharing\Plugin::ACCESS_NOACCESS = 4 |
Definition at line 33 of file Plugin.php.
Referenced by Sabre\CalDAV\SharingPlugin\propPatch(), Sabre\DAV\Xml\Request\ShareResourceTest\testDeserialize(), Sabre\DAV\Xml\Property\ShareAccessTest\testDeserialize(), and Sabre\DAV\Xml\Property\ShareAccessTest\testSerialize().
const Sabre\DAV\Sharing\Plugin::ACCESS_NOTSHARED = 0 |
Definition at line 29 of file Plugin.php.
Referenced by Sabre\CalDAV\Backend\MockSharing\getCalendarsForUser(), Sabre\CalDAV\SharingPlugin\propPatch(), Sabre\DAV\Xml\Property\ShareAccessTest\testDeserialize(), and Sabre\DAV\Xml\Property\ShareAccessTest\testSerialize().
const Sabre\DAV\Sharing\Plugin::ACCESS_READ = 2 |
Definition at line 31 of file Plugin.php.
Referenced by Sabre\DAV\Sharing\PluginTest\testBrowserPostActionSuccess(), Sabre\CalDAV\Backend\AbstractPDOTest\testDeleteSharedCalendar(), Sabre\DAV\Xml\Request\ShareResourceTest\testDeserialize(), Sabre\DAV\Xml\Property\ShareAccessTest\testDeserialize(), Sabre\DAV\Xml\Property\ShareAccessTest\testSerialize(), Sabre\DAV\Xml\Property\InviteTest\testSerialize(), Sabre\CalDAV\Backend\AbstractPDOTest\testUpdateInvites(), Sabre\CalDAV\Xml\Request\Share\xmlDeserialize(), and Sabre\CalDAV\Xml\Property\Invite\xmlSerialize().
const Sabre\DAV\Sharing\Plugin::ACCESS_READWRITE = 3 |
Definition at line 32 of file Plugin.php.
Referenced by Sabre\CalDAV\SharingPluginTest\setUp(), Sabre\DAV\Sharing\PluginTest\setUpTree(), Sabre\DAV\Xml\Request\ShareResourceTest\testDeserialize(), Sabre\DAV\Xml\Element\ShareeTest\testDeserialize(), Sabre\DAV\Xml\Property\ShareAccessTest\testDeserialize(), Sabre\DAV\Sharing\PluginTest\testProperties(), Sabre\DAV\Xml\Property\ShareAccessTest\testSerialize(), Sabre\DAV\Xml\Property\InviteTest\testSerialize(), Sabre\DAV\Sharing\ShareResourceTest\testShareResource(), Sabre\CalDAV\Xml\Request\Share\xmlDeserialize(), and Sabre\CalDAV\Xml\Property\Invite\xmlSerialize().
const Sabre\DAV\Sharing\Plugin::ACCESS_SHAREDOWNER = 1 |
Definition at line 30 of file Plugin.php.
Referenced by Sabre\CalDAV\Backend\MockSharing\getCalendarsForUser(), Sabre\CalDAV\SharingPlugin\propPatch(), Sabre\DAV\Sharing\ShareResourceTest\setUpTree(), Sabre\CalDAV\Backend\AbstractPDOTest\testCreateCalendarAndFetch(), Sabre\DAV\Xml\Property\ShareAccessTest\testDeserialize(), Sabre\DAV\Sharing\PluginTest\testHtmlActionsPanel(), Sabre\DAV\Xml\Property\ShareAccessTest\testSerialize(), and Sabre\DAV\Xml\Property\InviteTest\testSerialize().
const Sabre\DAV\Sharing\Plugin::INVITE_ACCEPTED = 2 |
Definition at line 36 of file Plugin.php.
Referenced by Sabre\CalDAV\Xml\Notification\InviteTest\dataProvider(), Sabre\CalDAV\Xml\Notification\InviteReplyTest\dataProvider(), Sabre\DAV\Xml\Property\InviteTest\testSerialize(), Sabre\CalDAV\Backend\PDO\updateInvites(), Sabre\CalDAV\Xml\Request\InviteReply\xmlDeserialize(), Sabre\CalDAV\Xml\Property\Invite\xmlSerialize(), Sabre\DAV\Xml\Element\Sharee\xmlSerialize(), Sabre\CalDAV\Xml\Notification\InviteReply\xmlSerializeFull(), and Sabre\CalDAV\Xml\Notification\Invite\xmlSerializeFull().
const Sabre\DAV\Sharing\Plugin::INVITE_DECLINED = 3 |
Definition at line 37 of file Plugin.php.
Referenced by Sabre\CalDAV\Xml\Notification\InviteReplyTest\dataProvider(), Sabre\DAV\Xml\Property\InviteTest\testSerialize(), Sabre\CalDAV\Xml\Request\InviteReply\xmlDeserialize(), Sabre\CalDAV\Xml\Property\Invite\xmlSerialize(), Sabre\DAV\Xml\Element\Sharee\xmlSerialize(), and Sabre\CalDAV\Xml\Notification\InviteReply\xmlSerializeFull().
const Sabre\DAV\Sharing\Plugin::INVITE_INVALID = 4 |
Definition at line 38 of file Plugin.php.
Referenced by Sabre\DAV\Xml\Property\InviteTest\testSerialize(), Sabre\CalDAV\Backend\PDO\updateInvites(), Sabre\CalDAV\Xml\Property\Invite\xmlSerialize(), and Sabre\DAV\Xml\Element\Sharee\xmlSerialize().
const Sabre\DAV\Sharing\Plugin::INVITE_NORESPONSE = 1 |
Definition at line 35 of file Plugin.php.
Referenced by Sabre\CalDAV\Xml\Notification\InviteTest\dataProvider(), Sabre\DAV\Sharing\PluginTest\testBrowserPostActionSuccess(), Sabre\DAV\Xml\Property\InviteTest\testSerialize(), Sabre\DAV\Sharing\ShareResourceTest\testShareResource(), Sabre\DAV\Mock\SharedNode\updateInvites(), Sabre\CalDAV\Backend\MockSharing\updateInvites(), Sabre\CalDAV\Xml\Property\Invite\xmlSerialize(), Sabre\DAV\Xml\Element\Sharee\xmlSerialize(), and Sabre\CalDAV\Xml\Notification\Invite\xmlSerializeFull().