You are here

function XMLSitemapWriter::__construct in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap.xmlsitemap.inc \XMLSitemapWriter::__construct()

Constructor.

Parameters

$sitemap: The sitemap array.

$page: The current page of the sitemap being generated.

1 call to XMLSitemapWriter::__construct()
XMLSitemapIndexWriter::__construct in ./xmlsitemap.xmlsitemap.inc
Constructor.
1 method overrides XMLSitemapWriter::__construct()
XMLSitemapIndexWriter::__construct in ./xmlsitemap.xmlsitemap.inc
Constructor.

File

./xmlsitemap.xmlsitemap.inc, line 31
XML sitemap integration functions for xmlsitemap.module.

Class

XMLSitemapWriter
Extended class for writing XML sitemap files.

Code

function __construct(stdClass &$sitemap, $page) {
  $this->sitemap = $sitemap;
  $this->sitemap_page = $page;
  $this->uri = xmlsitemap_sitemap_get_file($sitemap, $page);
  $this
    ->openUri($this->uri);
}