• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/elementlist.php
  • Класс: BitrixIblockComponentElementList
  • Вызов: ElementList::getTemplateSingleIblockParams
protected function getTemplateSingleIblockParams(&$params)
{
	$params['ADD_PICT_PROP'] = isset($params['ADD_PICT_PROP']) ? trim($params['ADD_PICT_PROP']) : '';
	if ($params['ADD_PICT_PROP'] === '-')
	{
		$params['ADD_PICT_PROP'] = '';
	}

	if (!isset($params['LABEL_PROP']) || !is_array($params['LABEL_PROP']))
	{
		$params['LABEL_PROP'] = array();
	}

	if (!isset($params['LABEL_PROP_MOBILE']) || !is_array($params['LABEL_PROP_MOBILE']))
	{
		$params['LABEL_PROP_MOBILE'] = array();
	}

	if (!empty($params['LABEL_PROP_MOBILE']))
	{
		$params['LABEL_PROP_MOBILE'] = array_flip($params['LABEL_PROP_MOBILE']);
	}

	if (!isset($params['PROPERTY_CODE_MOBILE']) || !is_array($params['PROPERTY_CODE_MOBILE']))
	{
		$params['PROPERTY_CODE_MOBILE'] = array();
	}

	if (!empty($params['PROPERTY_CODE_MOBILE']))
	{
		$params['PROPERTY_CODE_MOBILE'] = array_flip($params['PROPERTY_CODE_MOBILE']);
	}

	$params['ENLARGE_PROP'] = isset($params['ENLARGE_PROP']) ? trim($params['ENLARGE_PROP']) : '';
	if ($params['ENLARGE_PROP'] === '-')
	{
		$params['ENLARGE_PROP'] = '';
	}

	$params['OFFER_ADD_PICT_PROP'] = isset($params['OFFER_ADD_PICT_PROP']) ? trim($params['OFFER_ADD_PICT_PROP']) : '';
	if ($params['OFFER_ADD_PICT_PROP'] === '-')
	{
		$params['OFFER_ADD_PICT_PROP'] = '';
	}

	if (!isset($this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]) || !is_array($this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]))
	{
		$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']] = array();
	}

	$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]['ADD_PICT_PROP'] = $params['ADD_PICT_PROP'];
	$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]['LABEL_PROP'] = $params['LABEL_PROP'];
	$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]['LABEL_PROP_MOBILE'] = $params['LABEL_PROP_MOBILE'];
	$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]['PROPERTY_CODE_MOBILE'] = $params['PROPERTY_CODE_MOBILE'];
	$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]['ENLARGE_PROP'] = $params['ENLARGE_PROP'];
	$this->storage['IBLOCK_PARAMS'][$params['IBLOCK_ID']]['OFFERS_ADD_PICT_PROP'] = $params['OFFER_ADD_PICT_PROP'];
	unset($skuTreeProperties);
}