[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

File Size: 70 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Item:: (3 methods):
  __construct()
  createFromID()
  toXML()


Class: Item  - X-Ref

An item of a sitemap.

__construct($url, $lastmod, $changefreq = null, $priority = null)   X-Ref
Create a new item.

param: string $url        The url of the item
param: int    $lastmod    Timestamp of the last modification
param: string $changefreq How frequently the item is likely to change.
param: $priority float|string The priority of the item relative to other URLs on your site.

createFromID($id, $changefreq = null, $priority = null)   X-Ref
Helper function for creating an item for a wikipage id.

return: Item The sitemap item.
param: string       $id         A wikipage id.
param: string       $changefreq How frequently the item is likely to change.
param: float|string $priority   The priority of the item relative to other URLs on your site.

toXML()   X-Ref
Get the XML representation of the sitemap item.

return: string The XML representation.