MediaWiki master
|
Inherits MediaWiki\Content\IContentHandlerFactory.
Public Member Functions | |
__construct (array $handlerSpecs, ObjectFactory $objectFactory, HookContainer $hookContainer, LoggerInterface $logger) | |
defineContentHandler (string $modelID, $handlerSpec) | |
Define HandlerSpec for ModelID. | |
getAllContentFormats () | |
getContentHandler (string $modelID) | |
getContentModels () | |
Get defined ModelIDs. | |
isDefinedModel (string $modelID) | |
Definition at line 40 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::__construct | ( | array | $handlerSpecs, |
ObjectFactory | $objectFactory, | ||
HookContainer | $hookContainer, | ||
LoggerInterface | $logger ) |
string[] | callable[] | $handlerSpecs | An associative array mapping each known content model to the ObjectFactory spec used to construct its ContentHandler. This array typically comes from $wgContentHandlers. |
ObjectFactory | $objectFactory | |
HookContainer | $hookContainer | |
LoggerInterface | $logger |
Definition at line 72 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::defineContentHandler | ( | string | $modelID, |
$handlerSpec ) |
Define HandlerSpec for ModelID.
string | $modelID | |
callable | string | $handlerSpec |
Definition at line 111 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::getAllContentFormats | ( | ) |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 144 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::getContentHandler | ( | string | $modelID | ) |
string | $modelID |
MWUnknownContentModelException | If no handler is known for the model ID. |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 90 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::getContentModels | ( | ) |
Get defined ModelIDs.
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 126 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::isDefinedModel | ( | string | $modelID | ) |
string | $modelID |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 160 of file ContentHandlerFactory.php.