MediaWiki
1.34.0
MWUnknownContentModelException.php
Go to the documentation of this file.
1
<?php
10
class
MWUnknownContentModelException
extends
MWException
{
12
private
$modelId
;
13
15
function
__construct
(
$modelId
) {
16
parent::__construct(
"The content model '$modelId' is not registered on this wiki.\n"
.
17
'See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions '
.
18
'handle this content model.'
);
19
$this->modelId =
$modelId
;
20
}
21
23
public
function
getModelId
() {
24
return
$this->modelId
;
25
}
26
}
MWUnknownContentModelException\__construct
__construct( $modelId)
Definition:
MWUnknownContentModelException.php:15
MWException
MediaWiki exception.
Definition:
MWException.php:26
MWUnknownContentModelException\getModelId
getModelId()
Definition:
MWUnknownContentModelException.php:23
MWUnknownContentModelException
Exception thrown when an unregistered content model is requested.
Definition:
MWUnknownContentModelException.php:10
MWUnknownContentModelException\$modelId
string $modelId
The name of the unknown content model.
Definition:
MWUnknownContentModelException.php:12
includes
exception
MWUnknownContentModelException.php
Generated on Thu Dec 19 2019 14:54:17 for MediaWiki by
1.8.16