]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/CalDAV/Property/SupportedCollationSet.php
24e84d4c17d99815fba07ec9d540787f74f68e71
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / CalDAV / Property / SupportedCollationSet.php
1 <?php
2
3 /**
4  * supported-collation-set property
5  *
6  * This property is a representation of the supported-collation-set property
7  * in the CalDAV namespace.
8  *
9  * @package Sabre
10  * @subpackage CalDAV
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
14  */
15 class Sabre_CalDAV_Property_SupportedCollationSet extends Sabre_DAV_Property {
16
17     /**
18      * Serializes the property in a DOM document
19      *
20      * @param Sabre_DAV_Server $server
21      * @param DOMElement $node
22      * @return void
23      */
24     public function serialize(Sabre_DAV_Server $server,DOMElement $node) {
25
26         $doc = $node->ownerDocument;
27
28         $prefix = $node->lookupPrefix('urn:ietf:params:xml:ns:caldav');
29         if (!$prefix) $prefix = 'cal';
30
31         $node->appendChild(
32             $doc->createElement($prefix . ':supported-collation','i;ascii-casemap')
33         );
34         $node->appendChild(
35             $doc->createElement($prefix . ':supported-collation','i;octet')
36         );
37         $node->appendChild(
38             $doc->createElement($prefix . ':supported-collation','i;unicode-casemap')
39         );
40
41
42     }
43
44 }