You are here

public function XMLSitemapWriter::openUri in XML sitemap 7.2

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

Open URI.

1 call to XMLSitemapWriter::openUri()
XMLSitemapWriter::__construct in ./xmlsitemap.xmlsitemap.inc
Constructor.

File

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

Class

XMLSitemapWriter
Extended class for writing XML sitemap files.

Code

public function openUri($uri) {
  $return = parent::openUri($uri);
  if (!$return) {
    throw new XMLSitemapGenerationException(t('Could not open file @file for writing.', array(
      '@file' => $uri,
    )));
  }
  return $return;
}