1<?php
2
3namespace Sabre\DAVACL\Xml\Property;
4
5use Sabre\Xml\Writer;
6use Sabre\Xml\XmlSerializable;
7
8/**
9 * AclRestrictions property
10 *
11 * This property represents {DAV:}acl-restrictions, as defined in RFC3744.
12 *
13 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
14 * @author Evert Pot (http://evertpot.com/)
15 * @license http://sabre.io/license/ Modified BSD License
16 */
17class AclRestrictions implements XmlSerializable {
18
19    /**
20     * The xmlSerialize method is called during xml writing.
21     *
22     * Use the $writer argument to write its own xml serialization.
23     *
24     * An important note: do _not_ create a parent element. Any element
25     * implementing XmlSerializable should only ever write what's considered
26     * its 'inner xml'.
27     *
28     * The parent of the current element is responsible for writing a
29     * containing element.
30     *
31     * This allows serializers to be re-used for different element names.
32     *
33     * If you are opening new elements, you must also close them again.
34     *
35     * @param Writer $writer
36     * @return void
37     */
38    function xmlSerialize(Writer $writer) {
39
40        $writer->writeElement('{DAV:}grant-only');
41        $writer->writeElement('{DAV:}no-invert');
42
43    }
44
45}
46