src/XML/DOM/GoogleSitemapWriter.php
public static function writeSitemap( $links, $fileName = "sitemap.xml", $baseUrl = "" )
	{
		$xml	= XML_DOM_GoogleSitemapBuilder::buildSitemap( $links, $baseUrl );
		$file	= new FS_File_Writer( $fileName );
		return $file->writeString( $xml );
	}
public static function writeSitemap( $links, $fileName = "sitemap.xml", $baseUrl = "" )
	{
		$xml	= XML_DOM_GoogleSitemapBuilder::buildSitemap( $links, $baseUrl );
		$file	= new FS_File_Writer( $fileName );
		return $file->writeString( $xml );
	}
public static function writeSitemap ( $ links , $ fileName = "sitemap.xml" , $ baseUrl = "" ) { $ xml = XML_DOM_GoogleSitemapBuilder :: buildSitemap ( $ links , $ baseUrl ) ; $ file = new FS_File_Writer ( $ fileName ) ; return $ file -> writeString ( $ xml ) ; }
Builds and write XML of Sitemap.
@access		public
@static
@param		string		$links		List of Sitemap Link
@param		string		$fileName	File Name of XML Sitemap File
@param		string		$baseUrl	Basic URL to add to every Link
@return		bool
Builds and write XML of Sitemap .