SproutCMS

This is the code documentation for the SproutCMS project

function url()

Echo XML for a single URL in the sitemap

Usage

void $SitemapGen->url ( string $loc [, date $mod [, string $freq [, float $prio ]]] );

Arguments

  1. string $loc
    The location.
           Can be an absolute or relative url
  2. date $mod = NULL
    The last modified date.
           Should be anything parseable by strtotime()
  3. string $freq = NULL
    The frequency of updates.
           Options include 'always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never'
  4. float $prio = 0.5
    Priority relative to other pages on the site.
           Range 0.0 (unimportant) to 1.0 (very important)

Return value

  • void
    Outputs XML directly