You are here

public function XMLSitemapWriter::writeRaw in XML sitemap 6.2

Explicitly define the writeRaw() function since it is not available before PHP 5.2.

4 calls to XMLSitemapWriter::writeRaw()
XMLSitemapWriter::startElement in ./xmlsitemap.xmlsitemap.inc
XMLSitemapWriter::writeElement in ./xmlsitemap.xmlsitemap.inc
Write full element tag including support for nested elements.
XMLSitemapWriter::writeSitemapElement in ./xmlsitemap.xmlsitemap.inc
Write an full XML sitemap element tag.
XMLSitemapWriter::writeXSL in ./xmlsitemap.xmlsitemap.inc
Add the XML stylesheet to the XML page.

File

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

Class

XMLSitemapWriter
Extended class for writing XML sitemap files.

Code

public function writeRaw($content) {
  static $writeraw_parent;
  if (!isset($writeraw_parent)) {
    $writeraw_parent = method_exists('XMLWriter', 'writeRaw');
  }
  return $writeraw_parent ? parent::writeRaw($content) : parent::text($content);
}