4 * supported-collation-set property
6 * This property is a representation of the supported-collation-set property
7 * in the CalDAV namespace.
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_CalDAV_Property_SupportedCollationSet extends Sabre_DAV_Property {
18 * Serializes the property in a DOM document
20 * @param Sabre_DAV_Server $server
21 * @param DOMElement $node
24 public function serialize(Sabre_DAV_Server $server,DOMElement $node) {
26 $doc = $node->ownerDocument;
28 $prefix = $node->lookupPrefix('urn:ietf:params:xml:ns:caldav');
29 if (!$prefix) $prefix = 'cal';
32 $doc->createElement($prefix . ':supported-collation','i;ascii-casemap')
35 $doc->createElement($prefix . ':supported-collation','i;octet')
38 $doc->createElement($prefix . ':supported-collation','i;unicode-casemap')