Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5986576
PathConflict.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
PathConflict.php
View Options
<?php
namespace
MediaWiki\Rest\PathTemplateMatcher
;
use
Exception
;
/**
* @newable
*/
class
PathConflict
extends
Exception
{
/** @var string */
public
$newTemplate
;
/** @var mixed */
public
$newUserData
;
/** @var string */
public
$existingTemplate
;
/** @var mixed */
public
$existingUserData
;
/**
* @stable to call
*
* @param string $template
* @param mixed $userData
* @param array $existingNode
*/
public
function
__construct
(
$template
,
$userData
,
$existingNode
)
{
$this
->
newTemplate
=
$template
;
$this
->
newUserData
=
$userData
;
$this
->
existingTemplate
=
$existingNode
[
'template'
];
$this
->
existingUserData
=
$existingNode
[
'userData'
];
parent
::
__construct
(
"Unable to add path template
\"
$template
\"
since it conflicts "
.
"with the existing template
\"
{$this->existingTemplate}
\"
"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:09 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
08/b3/5b53a152f84a438d768876d4f5d1
Default Alt Text
PathConflict.php (833 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment