MediaWiki REL1_32
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 }
22 public function getModelId() {
23 return $this->modelId;
24 }
25}
MediaWiki exception.
Exception thrown when an unregistered content model is requested.
string $modelId
The name of the unknown content model.