1<?php
2
3namespace Sabre\DAV\Xml;
4
5/**
6 * XML service for WebDAV
7 *
8 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
9 * @author Evert Pot (http://evertpot.com/)
10 * @license http://sabre.io/license/ Modified BSD License
11 */
12class Service extends \Sabre\Xml\Service {
13
14    /**
15     * This is a list of XML elements that we automatically map to PHP classes.
16     *
17     * For instance, this list may contain an entry `{DAV:}propfind` that would
18     * be mapped to Sabre\DAV\Xml\Request\PropFind
19     */
20    public $elementMap = [
21        '{DAV:}multistatus' => 'Sabre\\DAV\\Xml\\Response\\MultiStatus',
22        '{DAV:}response'    => 'Sabre\\DAV\\Xml\\Element\\Response',
23
24        // Requests
25        '{DAV:}propfind'       => 'Sabre\\DAV\\Xml\\Request\\PropFind',
26        '{DAV:}propertyupdate' => 'Sabre\\DAV\\Xml\\Request\\PropPatch',
27        '{DAV:}mkcol'          => 'Sabre\\DAV\\Xml\\Request\\MkCol',
28
29        // Properties
30        '{DAV:}resourcetype' => 'Sabre\\DAV\\Xml\\Property\\ResourceType',
31
32    ];
33
34    /**
35     * This is a default list of namespaces.
36     *
37     * If you are defining your own custom namespace, add it here to reduce
38     * bandwidth and improve legibility of xml bodies.
39     *
40     * @var array
41     */
42    public $namespaceMap = [
43        'DAV:'                   => 'd',
44        'http://sabredav.org/ns' => 's',
45    ];
46
47}
48