MediaWiki REL1_34
MWUnknownContentModelException.php
Go to the documentation of this file.
1<?php
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}
MediaWiki exception.
Exception thrown when an unregistered content model is requested.
string $modelId
The name of the unknown content model.