Documentation

SitemapRuntime

SitemapRuntime class for handling sitemap temporary file. Such file is created when manually generating a map, to prevent conflicts in updates.

Class methods

MethodDescription Available from version
appendIBlockEntryAdds an entry to the sitemap end.
finishFinishes temporary file handling, renames it and assigns it as the main file.
putSitemapContentAdds the main file contents to a temporary file.

Parameters:

  • $sitemapFile - SitemapFile class object, containing main site map file.
setOriginalFileSets association between temporary and main file.

Parameters:

  • $sitemapFile - SitemapFile object class, containing sitemap main file.
showProgressShows progress bar with current sitemap generation status.

Parameters:

  • $text - status message.
  • $title - message title.
  • $v - number from 0 to 100, completed operation percentage.




© «Bitrix24», 2001-2024
Up