MediaWiki
master
|
Public Member Functions | |
__construct (array $handlerSpecs, ObjectFactory $objectFactory, HookContainer $hookContainer, LoggerInterface $logger) | |
defineContentHandler (string $modelID, $handlerSpec) | |
Define HandlerSpec for ModelID. More... | |
getAllContentFormats () | |
getContentHandler (string $modelID) | |
getContentModels () | |
Get defined ModelIDs. More... | |
isDefinedModel (string $modelID) | |
Definition at line 44 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 76 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::defineContentHandler | ( | string | $modelID, |
$handlerSpec | |||
) |
Define HandlerSpec for ModelID.
string | $modelID | |
callable | string | $handlerSpec |
MWException |
Definition at line 117 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::getAllContentFormats | ( | ) |
MWException |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 153 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::getContentHandler | ( | string | $modelID | ) |
string | $modelID |
MWException | For internal errors and problems in the configuration. |
MWUnknownContentModelException | If no handler is known for the model ID. |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 95 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::getContentModels | ( | ) |
Get defined ModelIDs.
MWException | |
FatalError |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 134 of file ContentHandlerFactory.php.
MediaWiki\Content\ContentHandlerFactory::isDefinedModel | ( | string | $modelID | ) |
string | $modelID |
MWException |
Implements MediaWiki\Content\IContentHandlerFactory.
Definition at line 170 of file ContentHandlerFactory.php.