Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1819715
InvalidResourceType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
917 B
Subscribers
None
InvalidResourceType.php
View Options
<?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
Details
Attached
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)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment