Documentation

SitemapFile

SitemapFile class for handling sitemap files.

Class methods

MethodDescription Available from version
addEntryAdds new entry as an array to the current sitemap file.
addFileEntryAdds new file to the current sitemap.
addFooterAdds footer to the current sitemap file.
addHeader Adds header to the current sitemap file.
addIBlockEntryAdds new iblock entry to the current sitemap.
appendEntryAdds new entry to the current or existing sitemap file.
appendIBlockEntryAdds new iblock entry to the existing completed sitemap.
getNameListReturns list of file section.
getPathDirectoryAdds directory with stored sitemap files.
getSiteRootReturns sitemap root site.
getUrlReturns sitemap file URL.
isCurrentPartNotEmptyReturns contents for current sitemap section if it contains any parts in addition to the header.
isNotEmptyReturns true, when current sitemap file section already contains any data in addition to the header.
parseAnalyses sitemap file.
removeEntrySearches and deletes an entry from the current completed sitemap file.
splitCreates next sitemap file section. Returns name for the new file section.


© «Bitrix24», 2001-2024
Up