streams/vendor/sabre/dav/lib/Sabre/DAVACL/Exception/NoAbstract.php

36 lines
898 B
PHP
Raw Normal View History

<?php
namespace Sabre\DAVACL\Exception;
use Sabre\DAV;
/**
* This exception is thrown when a user tries to set a privilege that's marked
* as abstract.
*
2014-04-12 17:13:37 +00:00
* @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
*/
class NoAbstract extends DAV\Exception\PreconditionFailed {
/**
* Adds in extra information in the xml response.
*
* This method adds the {DAV:}no-abstract element as defined in rfc3744
*
* @param DAV\Server $server
* @param \DOMElement $errorNode
* @return void
*/
public function serialize(DAV\Server $server,\DOMElement $errorNode) {
$doc = $errorNode->ownerDocument;
$np = $doc->createElementNS('DAV:','d:no-abstract');
$errorNode->appendChild($np);
}
}