MediaWiki  1.34.0
SiteExporter Class Reference

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. More...
 

Private Member Functions

 exportSite (Site $site)
 Writes a <site> tag representing the given Site object. More...
 

Private Attributes

resource $sink
 

Detailed Description

Definition at line 30 of file SiteExporter.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 40 of file SiteExporter.php.

References $sink.

Member Function Documentation

◆ exportSite()

SiteExporter::exportSite ( Site  $site)
private

◆ exportSites()

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 54 of file SiteExporter.php.

References Xml\closeElement(), exportSite(), and Xml\openElement().

Member Data Documentation

◆ $sink

resource SiteExporter::$sink
private

Definition at line 35 of file SiteExporter.php.

Referenced by __construct().


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