ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAVACL\MockPlugin Class Reference
+ Inheritance diagram for Sabre\DAVACL\MockPlugin:
+ Collaboration diagram for Sabre\DAVACL\MockPlugin:

Public Member Functions

 getCurrentUserPrivilegeSet ($node)
 
- Public Member Functions inherited from Sabre\DAVACL\Plugin
 getFeatures ()
 Returns a list of features added by this plugin. More...
 
 getMethods ($uri)
 Returns a list of available methods for a given url. More...
 
 getPluginName ()
 Returns a plugin name. More...
 
 getSupportedReportSet ($uri)
 Returns a list of reports this plugin supports. More...
 
 checkPrivileges ($uri, $privileges, $recursion=self::R_PARENT, $throwExceptions=true)
 Checks if the current user has the specified privilege(s). More...
 
 getCurrentUserPrincipals ()
 Returns a list of principals that's associated to the current user, either directly or through group membership. More...
 
 setDefaultAcl (array $acl)
 Sets the default ACL rules. More...
 
 getDefaultAcl ()
 Returns the default ACL rules. More...
 
 getPrincipalMembership ($mainPrincipal)
 Returns all the principal groups the specified principal is a member of. More...
 
 principalMatchesPrincipal ($checkPrincipal, $currentPrincipal=null)
 Find out of a principal equals another principal. More...
 
 getSupportedPrivilegeSet ($node)
 Returns a tree of supported privileges for a resource. More...
 
 getFlatPrivilegeSet ($node)
 Returns the supported privilege set as a flat list. More...
 
 getAcl ($node)
 Returns the full ACL list. More...
 
 getCurrentUserPrivilegeSet ($node)
 Returns a list of privileges the current user has on a particular node. More...
 
 getPrincipalByUri ($uri)
 Returns a principal based on its uri. More...
 
 principalSearch (array $searchProperties, array $requestedProperties, $collectionUri=null, $test='allof')
 Principal property search. More...
 
 initialize (DAV\Server $server)
 Sets up the plugin. More...
 
 beforeMethod (RequestInterface $request, ResponseInterface $response)
 Triggered before any method is handled. More...
 
 beforeBind ($uri)
 Triggered before a new node is created. More...
 
 beforeUnbind ($uri)
 Triggered before a node is deleted. More...
 
 beforeUnlock ($uri, DAV\Locks\LockInfo $lock)
 Triggered before a node is unlocked. More...
 
 propFind (DAV\PropFind $propFind, DAV\INode $node)
 Triggered before properties are looked up in specific nodes. More...
 
 propPatch ($path, DAV\PropPatch $propPatch)
 This method intercepts PROPPATCH methods and make sure the group-member-set is updated correctly. More...
 
 report ($reportName, $report, $path)
 This method handles HTTP REPORT requests. More...
 
 httpAcl (RequestInterface $request, ResponseInterface $response)
 This method is responsible for handling the 'ACL' event. More...
 
 htmlActionsPanel (DAV\INode $node, &$output)
 This method is used to generate HTML output for the DAV. 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...
 

Additional Inherited Members

- Data Fields inherited from Sabre\DAVACL\Plugin
const R_PARENT = 1
 Recursion constants. More...
 
const R_RECURSIVE = 2
 Recursion constants. More...
 
const R_RECURSIVEPARENTS = 3
 Recursion constants. More...
 
 $principalCollectionSet
 
 $hideNodesFromListings = false
 
 $principalSearchPropertySet
 
 $adminPrincipals = []
 
 $allowUnauthenticatedAccess = true
 
- Protected Member Functions inherited from Sabre\DAVACL\Plugin
 principalMatchReport ($path, Xml\Request\PrincipalMatchReport $report)
 The principal-match report is defined in RFC3744, section 9.3. More...
 
 expandPropertyReport ($path, $report)
 The expand-property report is defined in RFC3253 section 3.8. More...
 
 expandProperties ($path, array $requestedProperties, $depth)
 This method expands all the properties and returns a list with property values. More...
 
 principalSearchPropertySetReport ($path, $report)
 principalSearchPropertySetReport More...
 
 principalPropertySearchReport ($path, Xml\Request\PrincipalPropertySearchReport $report)
 principalPropertySearchReport More...
 
 aclPrincipalPropSetReport ($path, Xml\Request\AclPrincipalPropSetReport $report)
 aclPrincipalPropSet REPORT More...
 
- Protected Attributes inherited from Sabre\DAVACL\Plugin
 $server
 
 $defaultAcl
 
 $principalMembershipCache = []
 

Detailed Description

Definition at line 386 of file PrincipalPropertySearchTest.php.

Member Function Documentation

◆ getCurrentUserPrivilegeSet()

Sabre\DAVACL\MockPlugin::getCurrentUserPrivilegeSet (   $node)

Definition at line 388 of file PrincipalPropertySearchTest.php.

388  {
389 
390  return [
391  '{DAV:}read',
392  '{DAV:}write',
393  ];
394 
395  }

The documentation for this class was generated from the following file: