MediaWiki  master
WikiImporterFactory.php
Go to the documentation of this file.
1 <?php
27 
35  private $config;
36 
38  private $hookContainer;
39 
42 
44  private $namespaceInfo;
45 
47  private $titleFactory;
48 
51 
54 
57 
60 
63 
76  public function __construct(
87  ) {
88  $this->config = $config;
89  $this->hookContainer = $hookContainer;
90  $this->contentLanguage = $contentLanguage;
91  $this->namespaceInfo = $namespaceInfo;
92  $this->titleFactory = $titleFactory;
93  $this->wikiPageFactory = $wikiPageFactory;
94  $this->uploadRevisionImporter = $uploadRevisionImporter;
95  $this->permissionManager = $permissionManager;
96  $this->contentHandlerFactory = $contentHandlerFactory;
97  $this->slotRoleRegistry = $slotRoleRegistry;
98  }
99 
106  return new WikiImporter(
107  $source,
108  $this->config,
109  $this->hookContainer,
110  $this->contentLanguage,
111  $this->namespaceInfo,
112  $this->titleFactory,
113  $this->wikiPageFactory,
114  $this->uploadRevisionImporter,
115  $this->permissionManager,
116  $this->contentHandlerFactory,
117  $this->slotRoleRegistry
118  );
119  }
120 }
WikiImporterFactory\$wikiPageFactory
WikiPageFactory $wikiPageFactory
Definition: WikiImporterFactory.php:50
WikiImporter
XML file reader for the page data importer.
Definition: WikiImporter.php:44
WikiImporterFactory\$contentHandlerFactory
IContentHandlerFactory $contentHandlerFactory
Definition: WikiImporterFactory.php:59
UploadRevisionImporter
Definition: UploadRevisionImporter.php:6
WikiImporterFactory\$titleFactory
TitleFactory $titleFactory
Definition: WikiImporterFactory.php:47
WikiImporterFactory\$uploadRevisionImporter
UploadRevisionImporter $uploadRevisionImporter
Definition: WikiImporterFactory.php:53
WikiImporterFactory\$slotRoleRegistry
SlotRoleRegistry $slotRoleRegistry
Definition: WikiImporterFactory.php:62
WikiImporterFactory\__construct
__construct(Config $config, HookContainer $hookContainer, Language $contentLanguage, NamespaceInfo $namespaceInfo, TitleFactory $titleFactory, WikiPageFactory $wikiPageFactory, UploadRevisionImporter $uploadRevisionImporter, PermissionManager $permissionManager, IContentHandlerFactory $contentHandlerFactory, SlotRoleRegistry $slotRoleRegistry)
Definition: WikiImporterFactory.php:76
Config
Interface for configuration instances.
Definition: Config.php:30
WikiImporterFactory\$config
Config $config
Definition: WikiImporterFactory.php:35
Page\WikiPageFactory
Definition: WikiPageFactory.php:20
MediaWiki\Permissions\PermissionManager
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()-...
Definition: PermissionManager.php:53
MediaWiki\Content\IContentHandlerFactory
Definition: IContentHandlerFactory.php:10
WikiImporterFactory\getWikiImporter
getWikiImporter(ImportSource $source)
Definition: WikiImporterFactory.php:105
ImportSource
Source interface for XML import.
Definition: ImportSource.php:32
WikiImporterFactory\$hookContainer
HookContainer $hookContainer
Definition: WikiImporterFactory.php:38
TitleFactory
Creates Title objects.
Definition: TitleFactory.php:35
WikiImporterFactory\$contentLanguage
Language $contentLanguage
Definition: WikiImporterFactory.php:41
$source
$source
Definition: mwdoc-filter.php:34
MediaWiki\Revision\SlotRoleRegistry
A registry service for SlotRoleHandlers, used to define which slot roles are available on which page.
Definition: SlotRoleRegistry.php:48
MediaWiki\HookContainer\HookContainer
HookContainer class.
Definition: HookContainer.php:45
NamespaceInfo
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
Definition: NamespaceInfo.php:35
WikiImporterFactory
Factory service for WikiImporter instances.
Definition: WikiImporterFactory.php:33
WikiImporterFactory\$namespaceInfo
NamespaceInfo $namespaceInfo
Definition: WikiImporterFactory.php:44
WikiImporterFactory\$permissionManager
PermissionManager $permissionManager
Definition: WikiImporterFactory.php:56
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: Language.php:42