MediaWiki  master
MediaWiki\Export\WikiExporterFactory Class Reference

Factory service for WikiExporter instances. More...

Collaboration diagram for MediaWiki\Export\WikiExporterFactory:

Public Member Functions

 __construct (HookContainer $hookContainer, RevisionStore $revisionStore, TitleParser $titleParser)
 
 getWikiExporter (IDatabase $db, $history=WikiExporter::CURRENT, $text=WikiExporter::TEXT, $limitNamespaces=null)
 

Private Attributes

HookContainer $hookContainer
 
RevisionStore $revisionStore
 
TitleParser $titleParser
 

Detailed Description

Factory service for WikiExporter instances.

Author
Zabe
Since
1.38

Definition at line 35 of file WikiExporterFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Export\WikiExporterFactory::__construct ( HookContainer  $hookContainer,
RevisionStore  $revisionStore,
TitleParser  $titleParser 
)

Member Function Documentation

◆ getWikiExporter()

MediaWiki\Export\WikiExporterFactory::getWikiExporter ( IDatabase  $db,
  $history = WikiExporter::CURRENT,
  $text = WikiExporter::TEXT,
  $limitNamespaces = null 
)
Parameters
IDatabase$db
int | array$history
int$text
null | array$limitNamespaces
Returns
WikiExporter

Definition at line 68 of file WikiExporterFactory.php.

Member Data Documentation

◆ $hookContainer

HookContainer MediaWiki\Export\WikiExporterFactory::$hookContainer
private

◆ $revisionStore

RevisionStore MediaWiki\Export\WikiExporterFactory::$revisionStore
private

◆ $titleParser

TitleParser MediaWiki\Export\WikiExporterFactory::$titleParser
private

The documentation for this class was generated from the following file: