MediaWiki
REL1_34
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
}
MWException
MediaWiki exception.
Definition
MWException.php:26
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
MWUnknownContentModelException\getModelId
getModelId()
Definition
MWUnknownContentModelException.php:23
MWUnknownContentModelException\__construct
__construct( $modelId)
Definition
MWUnknownContentModelException.php:15
includes
exception
MWUnknownContentModelException.php
Generated on Fri Apr 5 2024 23:09:52 for MediaWiki by
1.9.8