MediaWiki REL1_40
|
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 32 of file SiteImporter.php.
SiteImporter::__construct | ( | SiteStore | $store | ) |
SiteStore | $store |
Definition at line 47 of file SiteImporter.php.
SiteImporter::getExceptionCallback | ( | ) |
Definition at line 54 of file SiteImporter.php.
SiteImporter::importFromFile | ( | $file | ) |
string | $file |
Definition at line 68 of file SiteImporter.php.
References $file, and importFromXML().
SiteImporter::importFromXML | ( | $xml | ) |
string | $xml |
InvalidArgumentException |
Definition at line 83 of file SiteImporter.php.
Referenced by importFromFile().
SiteImporter::makeSite | ( | DOMElement | $siteElement | ) |
DOMElement | $siteElement |
InvalidArgumentException |
Definition at line 165 of file SiteImporter.php.
References $path, $type, Site\GROUP_NONE, Site\newForType(), Site\SOURCE_LOCAL, and Site\TYPE_UNKNOWN.
SiteImporter::setExceptionCallback | ( | $exceptionCallback | ) |
callable | $exceptionCallback |
Definition at line 61 of file SiteImporter.php.