MediaWiki master
MediaWiki\Site\SiteExporter Class Reference

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.
 

Detailed Description

Utility for exporting site entries to XML.

For the output file format, see docs/sitelist.md and docs/sitelist-1.0.xsd.

Since
1.25
Author
Daniel Kinzler

Definition at line 35 of file SiteExporter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Site\SiteExporter::__construct ( $sink)
Parameters
resource$sinkA file handle open for writing

Definition at line 45 of file SiteExporter.php.

Member Function Documentation

◆ exportSites()

MediaWiki\Site\SiteExporter::exportSites ( $sites)

Writes a <site> tag for each Site object in $sites, and encloses the entire list between <sites> tags.

Parameters
Site[] | SiteList$sites

Definition at line 60 of file SiteExporter.php.

References MediaWiki\Html\Html\closeElement(), and MediaWiki\Html\Html\openElement().


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