Procedural File: lib_sitemap.php
Source Location: /_includes/lib_sitemap.php
Classes:
SitemapIndex
Describes a sitemap index.
Sitemap
Describes a sitemap.
Page Details:
A library that contains functions and classes related to the site's sitemap.
The sitemap is primarily used by indexing bots, e.g. googlebot.
Tags:
Includes:
SITEMAP_FILES [line 44]
SITEMAP_FORUM [line 45]
SITEMAP_INDEX [line 27]
SITEMAP_INDEX_COUNTER [line 54]
SITEMAP_NAMES [line 35]
SITEMAP_NEWS [line 42]
SITEMAP_PROJECTS [line 43]
formatSitemapElement [line 68]
string formatSitemapElement(
string $loc, [integer $lastmod = false], [float $priority = false], [string $changefreq = false])
|
|
Formats the paramamters into a well-formed XML url element as specified by the google sitemap schema. The last three parameters are optional, they may be left out.
Tags:
Parameters
| string |
$loc |
The url relative the root. |
| integer |
$lastmod |
The timestamp that describes the last point in time when the page was modified. |
| float |
$priority |
The priority of the page [0,1]. |
| string |
$changefreq |
The change frequency as specified by the schema. |
notifyTableChanged [line 91]
void notifyTableChanged(
string $table)
|
|
Notifies that the contents of a table has been altered. This should be called in order for the sitemaps to stay current.
Tags:
Parameters
| string |
$table |
The name of the table which's contents changed. |
|