MediaWiki
1.42.0
IContentHandlerFactory.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Content
;
4
5
use
ContentHandler
;
6
use
MWUnknownContentModelException
;
7
8
interface
IContentHandlerFactory
{
9
18
public
function
getContentHandler
(
string
$modelID ):
ContentHandler
;
19
27
public
function
getContentModels
(): array;
28
34
public
function
getAllContentFormats
(): array;
35
43
public
function
isDefinedModel
(
string
$modelID ): bool;
44
}
ContentHandler
A content handler knows how do deal with a specific type of content on a wiki page.
Definition
ContentHandler.php:74
MWUnknownContentModelException
Exception thrown when an unregistered content model is requested.
Definition
MWUnknownContentModelException.php:11
MediaWiki\Content\IContentHandlerFactory
Definition
IContentHandlerFactory.php:8
MediaWiki\Content\IContentHandlerFactory\isDefinedModel
isDefinedModel(string $modelID)
Returns true if $modelID is a defined content model for which getContentHandler() can be expected to ...
MediaWiki\Content\IContentHandlerFactory\getContentHandler
getContentHandler(string $modelID)
Returns a ContentHandler instance for the given $modelID.
MediaWiki\Content\IContentHandlerFactory\getContentModels
getContentModels()
Returns a list of defined content models.
MediaWiki\Content\IContentHandlerFactory\getAllContentFormats
getAllContentFormats()
Returns a list of all serialization formats supported for any of the defined content models.
MediaWiki\Content
Definition
ContentHandlerFactory.php:25
includes
content
IContentHandlerFactory.php
Generated on Thu Jun 13 2024 13:47:52 for MediaWiki by
1.10.0