Definition at line 44 of file ContentHandlerFactory.php.
◆ __construct()
| MediaWiki\Content\ContentHandlerFactory::__construct |
( |
array | $handlerSpecs, |
|
|
ObjectFactory | $objectFactory, |
|
|
HookContainer | $hookContainer, |
|
|
LoggerInterface | $logger ) |
- Since
- 1.35
- Access: internal
- Use
- See also
- MediaWikiServices::getContentHandlerFactory
- Parameters
-
| 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.
◆ defineContentHandler()
| MediaWiki\Content\ContentHandlerFactory::defineContentHandler |
( |
string | $modelID, |
|
|
| $handlerSpec ) |
Define HandlerSpec for ModelID.
- Parameters
-
| string | $modelID | |
| callable | string | $handlerSpec | |
- Exceptions
-
- Access: internal
Definition at line 117 of file ContentHandlerFactory.php.
◆ getAllContentFormats()
| MediaWiki\Content\ContentHandlerFactory::getAllContentFormats |
( |
| ) |
|
◆ getContentHandler()
| MediaWiki\Content\ContentHandlerFactory::getContentHandler |
( |
string | $modelID | ) |
|
◆ getContentModels()
| MediaWiki\Content\ContentHandlerFactory::getContentModels |
( |
| ) |
|
◆ isDefinedModel()
| MediaWiki\Content\ContentHandlerFactory::isDefinedModel |
( |
string | $modelID | ) |
|
The documentation for this class was generated from the following file: