MediaWiki
REL1_30
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
}
22
public
function
getModelId
() {
23
return
$this->modelId
;
24
}
25
}
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:22
MWUnknownContentModelException\__construct
__construct( $modelId)
Definition
MWUnknownContentModelException.php:15
includes
exception
MWUnknownContentModelException.php
Generated on Mon Nov 25 2024 15:42:17 for MediaWiki by
1.10.0