[ Index ]

PHP Cross Reference of DokuWiki




/inc/Sitemap/ -> Mapper.php (summary)

Sitemap handling functions

Author: Michael Hamann
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 175 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Mapper:: (5 methods):

Class: Mapper  - X-Ref

A class for building sitemaps and pinging search engines with the sitemap URL.

generate()   X-Ref
Builds a Google Sitemap of all public pages known to the indexer

The map is placed in the cache directory named sitemap.xml.gz - This
file needs to be writable!

return: bool
author: Michael Hamann
author: Andreas Gohr
link: https://www.google.com/webmasters/sitemaps/docs/en/about.html
link: http://www.sitemaps.org/

getXML($items)   X-Ref
Builds the sitemap XML string from the given array auf SitemapItems.

param: $items array The SitemapItems that shall be included in the sitemap.
return: string The sitemap XML.
author: Michael Hamann

getFilePath()   X-Ref
Helper function for getting the path to the sitemap file.

return: string The path to the sitemap file.
author: Michael Hamann

sitemapIsCompressed()   X-Ref
Helper function for checking if the sitemap is compressed

return: bool If the sitemap file is compressed

pingSearchEngines()   X-Ref
Pings search engines with the sitemap url. Plugins can add or remove
urls to ping using the SITEMAP_PING event.

return: bool
author: Michael Hamann