]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAVACL/Exception/NotSupportedPrivilege.php
removed community home addon
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAVACL / Exception / NotSupportedPrivilege.php
1 <?php
2
3 /**
4  * Sabre_DAVACL_Exception_NotSupportedPrivilege
5  *
6  * @package Sabre
7  * @subpackage DAVACL
8  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
9  * @author Evert Pot (http://www.rooftopsolutions.nl/)
10  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
11  */
12 class Sabre_DAVACL_Exception_NotSupportedPrivilege extends Sabre_DAV_Exception_PreconditionFailed {
13
14     /**
15      * Adds in extra information in the xml response.
16      *
17      * This method adds the {DAV:}not-supported-privilege element as defined in rfc3744
18      *
19      * @param Sabre_DAV_Server $server
20      * @param DOMElement $errorNode
21      * @return void
22      */
23     public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
24
25         $doc = $errorNode->ownerDocument;
26
27         $np = $doc->createElementNS('DAV:','d:not-supported-privilege');
28         $errorNode->appendChild($np);
29
30     }
31
32 }