MediaWiki
REL1_35
MWUnknownContentModelException.php
Go to the documentation of this file.
1
<?php
11
class
MWUnknownContentModelException
extends
MWException
{
13
private
$modelId
;
14
19
public
function
__construct
( $modelId ) {
20
parent::__construct(
"The content model '$modelId' is not registered on this wiki.\n"
.
21
'See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions '
.
22
'handle this content model.'
);
23
$this->modelId =
$modelId
;
24
}
25
27
public
function
getModelId
() {
28
return
$this->modelId;
29
}
30
}
MWException
MediaWiki exception.
Definition
MWException.php:29
MWUnknownContentModelException
Exception thrown when an unregistered content model is requested.
Definition
MWUnknownContentModelException.php:11
MWUnknownContentModelException\$modelId
string $modelId
The name of the unknown content model.
Definition
MWUnknownContentModelException.php:13
MWUnknownContentModelException\getModelId
getModelId()
Definition
MWUnknownContentModelException.php:27
MWUnknownContentModelException\__construct
__construct( $modelId)
Stable to call.
Definition
MWUnknownContentModelException.php:19
includes
exception
MWUnknownContentModelException.php
Generated on Sat Apr 6 2024 00:07:08 for MediaWiki by
1.9.8