You are here

public function XMLSitemapWriter::__construct in XML sitemap 7.2

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

Constructor.

@codingStandardsIgnoreStart

Parameters

array $sitemap: The sitemap array.

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

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

File

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

Class

XMLSitemapWriter
Extended class for writing XML sitemap files.

Code

public function __construct(stdClass $sitemap, $page) {

  // @codingStandardsIgnoreEnd
  $this->sitemap = $sitemap;
  $this->sitemap_page = $page;
  $this->uri = xmlsitemap_sitemap_get_file($sitemap, $page);
  $this
    ->openUri($this->uri);
}