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

Public Member Functions

 __construct (TypoScriptService $typoScriptService)
 
string render (string $_, array $typoScriptConfiguration, ServerRequestInterface $request)
 

Protected Member Functions

 initialize (array $fullConfiguration)
 
string renderIndex (ServerRequestInterface $request, string $sitemapType)
 
string renderSitemap (ServerRequestInterface $request, string $sitemap, string $sitemapType)
 
 getStandaloneView ()
 
string getXslFilePath (string $sitemapType=null, string $sitemap=null)
 

Protected Attributes

array $configuration
 
StandaloneView $view
 
TypoScriptService $typoScriptService
 

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 ( TypoScriptService  $typoScriptService)

Member Function Documentation

◆ 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 174 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().

◆ initialize()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::initialize ( array  $fullConfiguration)
protected

◆ render()

string TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::render ( string  $_,
array  $typoScriptConfiguration,
ServerRequestInterface  $request 
)
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
ServerRequestInterface$request
Returns
‪string
Exceptions
InvalidConfigurationException

Definition at line 63 of file XmlSitemapRenderer.php.

References $GLOBALS, TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\getXslFilePath(), TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\initialize(), 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 81 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 123 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.

◆ $typoScriptService

TypoScriptService TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::$typoScriptService
protected

◆ $view

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