Page MenuHomePhabricator

InvalidResourceType.php
No OneTemporary

InvalidResourceType.php

<?php
namespace Sabre\DAV\Exception;
/**
* InvalidResourceType
*
* This exception is thrown when the user tried to create a new collection, with
* a special resourcetype value that was not recognized by the server.
*
* See RFC5689 section 3.3
*
* @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class InvalidResourceType extends Forbidden {
/**
* This method allows the exception to include additional information into the WebDAV error response
*
* @param DAV\Server $server
* @param \DOMElement $errorNode
* @return void
*/
function serialize(\Sabre\DAV\Server $server, \DOMElement $errorNode) {
$error = $errorNode->ownerDocument->createElementNS('DAV:', 'd:valid-resourcetype');
$errorNode->appendChild($error);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Dec 21, 1:05 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914907
Default Alt Text
InvalidResourceType.php (917 B)

Event Timeline