class SitemapGenerationModel

Properties

protected SitemapAvailabilityRegistrar $sitemapRegistrar

Methods

__construct(ApplicationPath $applicationPath, SettingsInterface $settings, SitemapAvailabilityRegistrar $sitemapRegistrar)

SitemapGenerationModel constructor.

bool
save()

No description

checkSitemapFilePermissions(string $filename)

No description

string
getSitemapFilePath(string $filename)

No description

Urlset
collectSitemapItems(bool|null $isSecure)

No description

bool
saveSitemap(Urlset $urlSet, string $filename)

No description

Details

at line 50
__construct(ApplicationPath $applicationPath, SettingsInterface $settings, SitemapAvailabilityRegistrar $sitemapRegistrar)

SitemapGenerationModel constructor.

Parameters

ApplicationPath $applicationPath
SettingsInterface $settings
SitemapAvailabilityRegistrar $sitemapRegistrar

at line 63
bool save()

Return Value

bool

at line 82
protected checkSitemapFilePermissions(string $filename)

Parameters

string $filename

Exceptions

SitemapGenerationException

at line 102
protected string getSitemapFilePath(string $filename)

Parameters

string $filename

Return Value

string

at line 111
protected Urlset collectSitemapItems(bool|null $isSecure)

Parameters

bool|null $isSecure

Return Value

Urlset

at line 127
protected bool saveSitemap(Urlset $urlSet, string $filename)

Parameters

Urlset $urlSet
string $filename

Return Value

bool