ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\Exception\ConflictingLock Class Reference

ConflictingLock. More...

+ Inheritance diagram for Sabre\DAV\Exception\ConflictingLock:
+ Collaboration diagram for Sabre\DAV\Exception\ConflictingLock:

Public Member Functions

 serialize (DAV\Server $server, \DOMElement $errorNode)
 This method allows the exception to include additional information into the WebDAV error response. More...
 
- Public Member Functions inherited from Sabre\DAV\Exception\Locked
 __construct (DAV\Locks\LockInfo $lock=null)
 Creates the exception. More...
 
 getHTTPCode ()
 Returns the HTTP statuscode for this exception. More...
 
 serialize (DAV\Server $server, \DOMElement $errorNode)
 This method allows the exception to include additional information into the WebDAV error response. More...
 
- Public Member Functions inherited from Sabre\DAV\Exception
 getHTTPCode ()
 Returns the HTTP statuscode for this exception. More...
 
 serialize (Server $server, \DOMElement $errorNode)
 This method allows the exception to include additional information into the WebDAV error response. More...
 
 getHTTPHeaders (Server $server)
 This method allows the exception to return any extra HTTP response headers. More...
 

Additional Inherited Members

- Protected Attributes inherited from Sabre\DAV\Exception\Locked
 $lock
 

Detailed Description

ConflictingLock.

Similar to the Locked exception, this exception thrown when a LOCK request was made, on a resource which was already locked

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 17 of file ConflictingLock.php.

Member Function Documentation

◆ serialize()

Sabre\DAV\Exception\ConflictingLock::serialize ( DAV\Server  $server,
\DOMElement  $errorNode 
)

This method allows the exception to include additional information into the WebDAV error response.

Parameters
DAV\Server$server
\DOMElement$errorNode
Returns
void

Definition at line 26 of file ConflictingLock.php.

26  {
27 
28  if ($this->lock) {
29  $error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:no-conflicting-lock');
30  $errorNode->appendChild($error);
31  $error->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:href', $this->lock->uri));
32  }
33 
34  }

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