MediaWiki master
|
Utility for exporting site entries to XML. More...
Public Member Functions | |
__construct ( $sink) | |
exportSites ( $sites) | |
Writes a <site> tag for each Site object in $sites, and encloses the entire list between <sites> tags. | |
Utility for exporting site entries to XML.
For the output file format, see docs/sitelist.md and docs/sitelist-1.0.xsd.
Definition at line 35 of file SiteExporter.php.
MediaWiki\Site\SiteExporter::__construct | ( | $sink | ) |
resource | $sink | A file handle open for writing |
Definition at line 45 of file SiteExporter.php.
MediaWiki\Site\SiteExporter::exportSites | ( | $sites | ) |
Writes a <site> tag for each Site object in $sites, and encloses the entire list between <sites> tags.
Site[] | SiteList | $sites |
Definition at line 60 of file SiteExporter.php.
References MediaWiki\Html\Html\closeElement(), and MediaWiki\Html\Html\openElement().