MediaWiki
master
PathConflict.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest\PathTemplateMatcher
;
4
5
use Exception;
6
10
class
PathConflict
extends
Exception {
11
public
$newTemplate
;
12
public
$newUserData
;
13
public
$existingTemplate
;
14
public
$existingUserData
;
15
23
public
function
__construct
( $template, $userData, $existingNode ) {
24
$this->newTemplate = $template;
25
$this->newUserData = $userData;
26
$this->existingTemplate = $existingNode[
'template'
];
27
$this->existingUserData = $existingNode[
'userData'
];
28
parent::__construct(
"Unable to add path template \"$template\" since it conflicts "
.
29
"with the existing template \"{$this->existingTemplate}\""
);
30
}
31
}
MediaWiki\Rest\PathTemplateMatcher\PathConflict
Definition:
PathConflict.php:10
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$newUserData
$newUserData
Definition:
PathConflict.php:12
MediaWiki\Rest\PathTemplateMatcher\PathConflict\__construct
__construct( $template, $userData, $existingNode)
Definition:
PathConflict.php:23
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$newTemplate
$newTemplate
Definition:
PathConflict.php:11
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$existingUserData
$existingUserData
Definition:
PathConflict.php:14
MediaWiki\Rest\PathTemplateMatcher\PathConflict\$existingTemplate
$existingTemplate
Definition:
PathConflict.php:13
MediaWiki\Rest\PathTemplateMatcher
Definition:
PathConflict.php:3
includes
Rest
PathTemplateMatcher
PathConflict.php
Generated on Thu Sep 21 2023 12:09:06 for MediaWiki by
1.9.1