Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс SectionsList

Открытые члены

 __construct ($exportId)
 
 createCacheIdSections ($onlyMapped=true)
 
 createCacheIdMappedSections ()
 
 createCacheIdMappedSectionsList ()
 
 clearCaches ()
 
 getSections ($tree=false, $onlyMapped=true)
 
 getMappedIblocks ()
 
 getSectionsToProductExport ()
 
 getSectionsToAlbumsExport ()
 
 getMultiSectionsToProduct ($pdoructsIds)
 
 getSectionMapToPrint ()
 
 getSectionsToMap ()
 
 getToAlbumBySection ($sectionId)
 
 getSectionsSelector ($checkedSection=null, $onlyMapped=true)
 
 getVkCategory ($sectionId)
 
 prepareSectionToShow ($sectionId)
 
 prepareSettingsVisibility ($params, $sectionId)
 
 setCurrSectionSettings ($settings)
 
 prepareSectionToSave ($sectionId)
 
 prepareChildsToSave ($sectionId)
 

Открытые атрибуты

const CACHE_DIR = '/sale/vkexport/'
 
const CACHE_TTL = 86400
 
const CACHE_ID_PREFIX = "vk_sectionslist_cache"
 
const CACHE_ID_SECTIONS = "iblock_sections"
 
const CACHE_ID_MAPPED_SECTIONS = "mapped_sections"
 
const CACHE_ID_MAPPED_SECTIONS_LIST = "mapped_sections_list"
 
const VK_ICON = '<img src="/bitrix/images/sale/vk/vk_icon.png" style="height:16px; width:16px; margin-right: 1em;" />'
 
const VK_ICON_EMPTY = '<span style="width:16px; margin-right: 1em; display:inline-block;"></span>'
 

Защищенные члены

 getIblockIds ($onlyMapped)
 

Подробное описание

См. определение в файле sectionslist.php строка 20

Конструктор(ы)

◆ __construct()

__construct ( $exportId)

SectionsList constructor.

Аргументы
$exportId

См. определение в файле sectionslist.php строка 43

Методы

◆ clearCaches()

clearCaches ( )

Clean all caches for class. Run in moment of changed sections settings

См. определение в файле sectionslist.php строка 110

◆ createCacheIdMappedSections()

createCacheIdMappedSections ( )

Create cache ID for mapped sections list

Возвращает
string

См. определение в файле sectionslist.php строка 92

◆ createCacheIdMappedSectionsList()

createCacheIdMappedSectionsList ( )

Create cache ID for mapped sections list

Возвращает
string

См. определение в файле sectionslist.php строка 101

◆ createCacheIdSections()

createCacheIdSections ( $onlyMapped = true)

Create cache ID for iblock sections

Возвращает
string

См. определение в файле sectionslist.php строка 81

◆ getIblockIds()

getIblockIds ( $onlyMapped)
protected

См. определение в файле sectionslist.php строка 191

◆ getMappedIblocks()

getMappedIblocks ( )

Collect IBLOCK for all mapped sections. Need at creation FEEDs for product export

Возвращает
array of iblocks IDs

См. определение в файле sectionslist.php строка 223

◆ getMultiSectionsToProduct()

getMultiSectionsToProduct ( $pdoructsIds)

См. определение в файле sectionslist.php строка 380

◆ getSectionMapToPrint()

getSectionMapToPrint ( )

Prepare mapped sections to print export map

См. определение в файле sectionslist.php строка 402

◆ getSections()

getSections ( $tree = false,
$onlyMapped = true )

Return list of iblock sections. At the first run saving list in cache.

Аргументы
bool$tree- is true - list will be converted to tree
Возвращает
array
Исключения

Bitrix\Main\SystemException

См. определение в файле sectionslist.php строка 127

◆ getSectionsSelector()

getSectionsSelector ( $checkedSection = null,
$onlyMapped = true )

Create selector for HTML. Not create <select> tag, only inner <options>

Аргументы
null$checkedSection- ID of section. If not NULL - this option will be checked
Возвращает
string
Исключения

Bitrix\Main\SystemException

См. определение в файле sectionslist.php строка 671

◆ getSectionsToAlbumsExport()

getSectionsToAlbumsExport ( )

Find and converted all section to albums export. Check inhering of parameters and define which sections will be exported

Возвращает
array - in field "SECTIONS" - array of sections ID. In field "ALIASES" - aliases for sections.

См. определение в файле sectionslist.php строка 332

◆ getSectionsToMap()

getSectionsToMap ( )

Get extend sections array - group sections by VK-album, add URL to VK album, add URL to section edit page, add count of element

Возвращает
array

См. определение в файле sectionslist.php строка 457

◆ getSectionsToProductExport()

getSectionsToProductExport ( )

Find and converted all section to product export. Check inhering of parameters and define which sections will be exported

Возвращает
array - array of sections ID

См. определение в файле sectionslist.php строка 246

◆ getToAlbumBySection()

getToAlbumBySection ( $sectionId)

Find parameter TO_ALBUM to section. Check INHERING and parent settings

Аргументы
$sectionId
Возвращает
int ID of section to adding

См. определение в файле sectionslist.php строка 626

◆ getVkCategory()

getVkCategory ( $sectionId)

Return vk default category from settings.

Аргументы
$sectionId
Возвращает
int

См. определение в файле sectionslist.php строка 715

◆ prepareChildsToSave()

prepareChildsToSave ( $sectionId)

Create settings for childs. For childs set only INHERIT option and VK CATEGORY. Other settings will be getting in export

Аргументы
$sectionId
Возвращает
array

См. определение в файле sectionslist.php строка 1039

◆ prepareSectionToSave()

prepareSectionToSave ( $sectionId)

Validate settings before saving Check settings dependence, adjust them if neede or set default values. Return array to mappng

Аргументы
$sectionId
Возвращает
array

См. определение в файле sectionslist.php строка 929

◆ prepareSectionToShow()

prepareSectionToShow ( $sectionId)

Get saved values for selected section and export ID and format them. Check settings dependence, adjust them if needed or set default values. Set visibility for controls according by settings

Аргументы
$sectionId
Возвращает
array

См. определение в файле sectionslist.php строка 748

◆ prepareSettingsVisibility()

prepareSettingsVisibility ( $params,
$sectionId )

Set visibility for controls according by settings. Return settings array

Аргументы
$params
$section
Возвращает
mixed

См. определение в файле sectionslist.php строка 803

◆ setCurrSectionSettings()

setCurrSectionSettings ( $settings)
Аргументы
$settingsarray

См. определение в файле sectionslist.php строка 912

Данные класса

◆ CACHE_DIR

const CACHE_DIR = '/sale/vkexport/'

См. определение в файле sectionslist.php строка 29

◆ CACHE_ID_MAPPED_SECTIONS

const CACHE_ID_MAPPED_SECTIONS = "mapped_sections"

См. определение в файле sectionslist.php строка 33

◆ CACHE_ID_MAPPED_SECTIONS_LIST

const CACHE_ID_MAPPED_SECTIONS_LIST = "mapped_sections_list"

См. определение в файле sectionslist.php строка 34

◆ CACHE_ID_PREFIX

const CACHE_ID_PREFIX = "vk_sectionslist_cache"

См. определение в файле sectionslist.php строка 31

◆ CACHE_ID_SECTIONS

const CACHE_ID_SECTIONS = "iblock_sections"

См. определение в файле sectionslist.php строка 32

◆ CACHE_TTL

const CACHE_TTL = 86400

См. определение в файле sectionslist.php строка 30

◆ VK_ICON

const VK_ICON = '<img src="/bitrix/images/sale/vk/vk_icon.png" style="height:16px; width:16px; margin-right: 1em;" />'

См. определение в файле sectionslist.php строка 36

◆ VK_ICON_EMPTY

const VK_ICON_EMPTY = '<span style="width:16px; margin-right: 1em; display:inline-block;"></span>'

См. определение в файле sectionslist.php строка 37