‪TYPO3CMS  10.4
TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer Class Reference

Public Member Functions

 __construct ()
 
string render (string $_, array $typoScriptConfiguration)
 

Protected Member Functions

string renderIndex (ServerRequestInterface $request, string $sitemapType)
 
string renderSitemap (ServerRequestInterface $request, string $sitemap, string $sitemapType)
 
StandaloneView getStandaloneView ()
 
string getXslFilePath (string $sitemapType=null, string $sitemap=null)
 

Protected Attributes

array $configuration
 
StandaloneView $view
 

Private Member Functions

array getConfiguration ()
 

Detailed Description

Class to render the XML Sitemap to be used as a UserFunction

this class is not part of TYPO3's Core API.

Definition at line 33 of file XmlSitemapRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::__construct ( )

Member Function Documentation

◆ getConfiguration()

array TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::getConfiguration ( )
private

◆ getStandaloneView()

◆ getXslFilePath()

string TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::getXslFilePath ( string  $sitemapType = null,
string  $sitemap = null 
)
protected
Parameters
string | null$sitemapType
string | null$sitemap
Returns
‪string

Definition at line 166 of file XmlSitemapRenderer.php.

References TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath().

Referenced by TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\render(), and TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\renderSitemap().

◆ render()

string TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::render ( string  $_,
array  $typoScriptConfiguration 
)
Parameters
string$_‪unused, but needed as this is called via userfunc and passes a string as first parameter
array$typoScriptConfiguration‪TypoScript configuration specified in USER Content Object
Returns
‪string
Exceptions
InvalidConfigurationException

Definition at line 59 of file XmlSitemapRenderer.php.

References $GLOBALS, TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\getXslFilePath(), TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\renderIndex(), and TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\renderSitemap().

◆ renderIndex()

string TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::renderIndex ( ServerRequestInterface  $request,
string  $sitemapType 
)
protected
Parameters
ServerRequestInterface$request
string$sitemapType
Returns
‪string

Definition at line 78 of file XmlSitemapRenderer.php.

Referenced by TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\render().

◆ renderSitemap()

string TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::renderSitemap ( ServerRequestInterface  $request,
string  $sitemap,
string  $sitemapType 
)
protected
Parameters
ServerRequestInterface$request
string$sitemap
string$sitemapType
Returns
‪string
Exceptions
InvalidConfigurationException

Definition at line 118 of file XmlSitemapRenderer.php.

References TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\getXslFilePath().

Referenced by TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\render().

Member Data Documentation

◆ $configuration

array TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::$configuration
protected

Definition at line 37 of file XmlSitemapRenderer.php.

◆ $view

StandaloneView TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::$view
protected