]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAVACL/Property/AclRestrictions.php
Initial Release of the calendar plugin
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAVACL / Property / AclRestrictions.php
1 <?php
2
3 /**
4  * AclRestrictions property
5  *
6  * This property represents {DAV:}acl-restrictions, as defined in RFC3744.
7  *
8  * @package Sabre
9  * @subpackage DAVACL
10  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
11  * @author Evert Pot (http://www.rooftopsolutions.nl/)
12  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
13  */
14 class Sabre_DAVACL_Property_AclRestrictions extends Sabre_DAV_Property {
15
16     /**
17      * Serializes the property into a DOMElement
18      *
19      * @param Sabre_DAV_Server $server
20      * @param DOMElement $elem
21      * @return void
22      */
23     public function serialize(Sabre_DAV_Server $server,DOMElement $elem) {
24
25         $doc = $elem->ownerDocument;
26
27         $elem->appendChild($doc->createElementNS('DAV:','d:grant-only'));
28         $elem->appendChild($doc->createElementNS('DAV:','d:no-invert'));
29
30     }
31
32 }