• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/sectionslist.php
  • Класс: BitrixSaleTradingPlatformVkSectionsList
  • Вызов: SectionsList::getSectionMapToPrint
public function getSectionMapToPrint()
{
	$mappedSectionGroupped = $this->getSectionsToMap();
	$result = '';
	$result .= '
			
		';

	foreach ($mappedSectionGroupped as $currAlbum)
	{
		$result .= '';
		$result .= '';
		$result .= '';

//			collect SECTIONS
		if (count($currAlbum["ITEMS"]) > 0)
		{
			$items = '';
			foreach ($currAlbum["ITEMS"] as $currSection)
			{
				$items .= '
' . $currSection["NAME"]; $items .= ' (' . Loc::getMessage("VK_EXPORT_MAP__ELEMENT_CNT_2") . ': ' . $currSection["ELEMENT_CNT"] . ')'; $items .= isset($currSection["SECTION_URL"]) ? ' ' . Loc::getMessage("VK_EXPORT_MAP__SECTION_SETTINGS") . ' ' : ''; $items .= '
'; } $result .= ''; } else { $result .= ''; } $result .= ''; } $result .= '
' . Loc::getMessage("VK_EXPORT_MAP__ALBUM_NAME") . ' ' . Loc::getMessage("VK_EXPORT_MAP__ELEMENT_CNT") . ' ' . Loc::getMessage("VK_EXPORT_MAP__SECTIONS_NAME") . '
'; $result .= isset($currAlbum["ALBUM_VK_URL"]) ? '' . self::VK_ICON . '' . $currAlbum["TO_ALBUM_NAME"] : self::VK_ICON_EMPTY . $currAlbum["TO_ALBUM_NAME"]; $result .= '' . $currAlbum["ELEMENT_CNT"] . '' . $items . '' . Loc::getMessage("VK_EXPORT_MAP__NO_SECTIONS") . '
'; return $result; }