getPathDirectory
array public \Bitrix\Seo\SitemapFile::getPathDirectory( );
Method adds directory with stored sitemap files, starting from the root. When files are stored in the root - returns "/". Non-static method.
No parameters
Example
$arSitemapSettings = array( 'SITE_ID' => $arSitemap['SITE_ID'], 'PROTOCOL' => $arSitemap['SETTINGS']['PROTO'] == 1 ? 'https' : 'http', 'DOMAIN' => $arSitemap['SETTINGS']['DOMAIN'], ); $sitemapFile = new SitemapRuntime($PID, $arSitemap['SETTINGS']['FILENAME_FILES'], $arSitemapSettings); $directory = $sitemapFile->getPathDirectory();
© «Bitrix24», 2001-2024