PHP Class Sulu\Bundle\WebsiteBundle\Twig\Sitemap\SitemapTwigExtension

Inheritance: extends Twig_Extension, implements Sulu\Bundle\WebsiteBundle\Twig\Sitemap\SitemapTwigExtensionInterface
显示文件 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\WebsiteBundle\Sitemap\SitemapGeneratorInterface $sitemapGenerator, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, $environment, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer = null )
getFunctions ( )
getName ( )
sitemapFunction ( $locale = null, $webspaceKey = null )
sitemapUrlFunction ( $url, $locale = null, $webspaceKey = null )

Method Details

__construct() public method

public __construct ( Sulu\Bundle\WebsiteBundle\Sitemap\SitemapGeneratorInterface $sitemapGenerator, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, $environment, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer = null )
$sitemapGenerator Sulu\Bundle\WebsiteBundle\Sitemap\SitemapGeneratorInterface
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

sitemapFunction() public method

public sitemapFunction ( $locale = null, $webspaceKey = null )

sitemapUrlFunction() public method

public sitemapUrlFunction ( $url, $locale = null, $webspaceKey = null )