MediaWiki master
|
Utility for importing site entries from XML. More...
Public Member Functions | |
__construct (SiteStore $store) | |
getExceptionCallback () | |
importFromFile ( $file) | |
importFromXML ( $xml) | |
makeSite (DOMElement $siteElement) | |
setExceptionCallback ( $exceptionCallback) | |
Utility for importing site entries from XML.
For the expected format of the input, see docs/sitelist.md and docs/sitelist-1.0.xsd.
Definition at line 39 of file SiteImporter.php.
MediaWiki\Site\SiteImporter::__construct | ( | SiteStore | $store | ) |
SiteStore | $store |
Definition at line 54 of file SiteImporter.php.
MediaWiki\Site\SiteImporter::getExceptionCallback | ( | ) |
Definition at line 61 of file SiteImporter.php.
MediaWiki\Site\SiteImporter::importFromFile | ( | $file | ) |
string | $file |
Definition at line 75 of file SiteImporter.php.
References MediaWiki\Site\SiteImporter\importFromXML().
MediaWiki\Site\SiteImporter::importFromXML | ( | $xml | ) |
string | $xml |
Definition at line 89 of file SiteImporter.php.
Referenced by MediaWiki\Site\SiteImporter\importFromFile().
MediaWiki\Site\SiteImporter::makeSite | ( | DOMElement | $siteElement | ) |
DOMElement | $siteElement |
Definition at line 163 of file SiteImporter.php.
References $path, MediaWiki\Site\Site\GROUP_NONE, MediaWiki\Site\Site\newForType(), MediaWiki\Site\Site\SOURCE_LOCAL, and MediaWiki\Site\Site\TYPE_UNKNOWN.
MediaWiki\Site\SiteImporter::setExceptionCallback | ( | $exceptionCallback | ) |
callable | $exceptionCallback |
Definition at line 68 of file SiteImporter.php.