source: pmb4.1/trunk/fuentes/pmb/admin/connecteurs/out/webdav/lib/Sabre/DAV/Exception/ReportNotSupported.php @ 478

Last change on this file since 478 was 478, checked in by mabarracus, 4 years ago

copy trusty code 4.1

  • Property svn:executable set to *
File size: 884 bytes
RevLine 
[478]1<?php
2
3namespace Sabre\DAV\Exception;
4
5use Sabre\DAV;
6
7/**
8 * ReportNotSupported
9 *
10 * This exception is thrown when the client requested an unknown report through the REPORT method
11 *
12 * @copyright Copyright (C) 2007-2013 Rooftop Solutions. All rights reserved.
13 * @author Evert Pot (http://www.rooftopsolutions.nl/)
14 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
15 */
16class ReportNotSupported extends Forbidden {
17
18    /**
19     * This method allows the exception to include additional information into the WebDAV error response
20     *
21     * @param DAV\Server $server
22     * @param \DOMElement $errorNode
23     * @return void
24     */
25    public function serialize(DAV\Server $server,\DOMElement $errorNode) {
26
27        $error = $errorNode->ownerDocument->createElementNS('DAV:','d:supported-report');
28        $errorNode->appendChild($error);
29
30    }
31
32}
Note: See TracBrowser for help on using the repository browser.