|
MediaWiki master
|
Inherited by MediaWiki\Content\ContentHandlerFactory.
Public Member Functions | |
| getAllContentFormats () | |
| Returns a list of all serialization formats supported for any of the defined content models. | |
| getContentHandler (string $modelID) | |
| Returns a ContentHandler instance for the given $modelID. | |
| getContentModels () | |
| Returns a list of defined content models. | |
| isDefinedModel (string $modelID) | |
| Returns true if $modelID is a defined content model for which getContentHandler() can be expected to return a ContentHandler instance. | |
Definition at line 10 of file IContentHandlerFactory.php.
| MediaWiki\Content\IContentHandlerFactory::getAllContentFormats | ( | ) |
Returns a list of all serialization formats supported for any of the defined content models.
Implemented in MediaWiki\Content\ContentHandlerFactory.
| MediaWiki\Content\IContentHandlerFactory::getContentHandler | ( | string | $modelID | ) |
Returns a ContentHandler instance for the given $modelID.
| string | $modelID |
| MWUnknownContentModelException | If no handler is known for the model ID. |
Implemented in MediaWiki\Content\ContentHandlerFactory.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
| MediaWiki\Content\IContentHandlerFactory::getContentModels | ( | ) |
Returns a list of defined content models.
getContentHandler() can be expected to return a ContentHandler for the models returned by this method.
Implemented in MediaWiki\Content\ContentHandlerFactory.
| MediaWiki\Content\IContentHandlerFactory::isDefinedModel | ( | string | $modelID | ) |
Returns true if $modelID is a defined content model for which getContentHandler() can be expected to return a ContentHandler instance.
| string | $modelID |
Implemented in MediaWiki\Content\ContentHandlerFactory.