PHP Class Sulu\Bundle\WebsiteBundle\Sitemap\SitemapUrl

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( string $loc, DateTime $lastmod = null, string $changefreq = null, float $priority = null )
addAlternateLink ( SitemapAlternateLink $alternateLink ) Add new alternate-link.
getAlternateLinks ( ) : SitemapAlternateLink[] Returns alternate-links.
getChangefreq ( ) : string Returns changefreq.
getLastmod ( ) : DateTime Returns lastmod.
getLoc ( ) : string Returns loc.
getPriority ( ) : float Returns priority.

Method Details

__construct() public method

public __construct ( string $loc, DateTime $lastmod = null, string $changefreq = null, float $priority = null )
$loc string
$lastmod DateTime
$changefreq string
$priority float

getChangefreq() public method

Returns changefreq.
public getChangefreq ( ) : string
return string

getLastmod() public method

Returns lastmod.
public getLastmod ( ) : DateTime
return DateTime

getLoc() public method

Returns loc.
public getLoc ( ) : string
return string

getPriority() public method

Returns priority.
public getPriority ( ) : float
return float