6 * Similar to Exception_Locked, this exception thrown when a LOCK request
7 * was made, on a resource which was already locked
11 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
12 * @author Evert Pot (http://www.rooftopsolutions.nl/)
13 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
15 class Sabre_DAV_Exception_ConflictingLock extends Sabre_DAV_Exception_Locked {
18 * This method allows the exception to include additional information into the WebDAV error response
20 * @param Sabre_DAV_Server $server
21 * @param DOMElement $errorNode
24 public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
27 $error = $errorNode->ownerDocument->createElementNS('DAV:','d:no-conflicting-lock');
28 $errorNode->appendChild($error);
29 if (!is_object($this->lock)) var_dump($this->lock);
30 $error->appendChild($errorNode->ownerDocument->createElementNS('DAV:','d:href',$this->lock->uri));