source: pmb4.2/trunk/fuentes/pmb/admin/connecteurs/out/webdav/lib/Sabre/DAVACL/Exception/NoAbstract.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 916 bytes
Line 
1<?php
2
3namespace Sabre\DAVACL\Exception;
4
5use Sabre\DAV;
6
7/**
8 * This exception is thrown when a user tries to set a privilege that's marked
9 * as abstract.
10 *
11 * @copyright Copyright (C) 2007-2013 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
14 */
15class NoAbstract extends DAV\Exception\PreconditionFailed {
16
17    /**
18     * Adds in extra information in the xml response.
19     *
20     * This method adds the {DAV:}no-abstract element as defined in rfc3744
21     *
22     * @param DAV\Server $server
23     * @param \DOMElement $errorNode
24     * @return void
25     */
26    public function serialize(DAV\Server $server,\DOMElement $errorNode) {
27
28        $doc = $errorNode->ownerDocument;
29
30        $np = $doc->createElementNS('DAV:','d:no-abstract');
31        $errorNode->appendChild($np);
32
33    }
34
35}
Note: See TracBrowser for help on using the repository browser.