]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAV/Exception/InvalidResourceType.php
Initial Release of the calendar plugin
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAV / Exception / InvalidResourceType.php
1 <?php
2
3 /**
4  * InvalidResourceType
5  *
6  * This exception is thrown when the user tried to create a new collection, with
7  * a special resourcetype value that was not recognized by the server.
8  *
9  * See RFC5689 section 3.3
10  *
11  * @package Sabre
12  * @subpackage DAV
13  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
14  * @author Evert Pot (http://www.rooftopsolutions.nl/) 
15  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
16  */
17 class Sabre_DAV_Exception_InvalidResourceType extends Sabre_DAV_Exception_Forbidden {
18
19     /**
20      * This method allows the exception to include additional information into the WebDAV error response
21      *
22      * @param Sabre_DAV_Server $server
23      * @param DOMElement $errorNode
24      * @return void
25      */
26     public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
27
28         $error = $errorNode->ownerDocument->createElementNS('DAV:','d:valid-resourcetype');
29         $errorNode->appendChild($error);
30
31     }
32
33 }