• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/selector/entity.php
  • Класс: BitrixIblockComponentSelectorEntity
  • Вызов: Entity::getRowAction
protected function getRowAction(array $row)
{
	$result = null;
	if ($this->resultAction['DATA_TYPE'] != self::RESULT_DATA_TYPE_SET)
		return $result;
	switch ($this->resultAction['TYPE'])
	{
		case self::RESULT_ACTION_TYPE_EVENT:
			break;
		case self::RESULT_ACTION_TYPE_CALLBACK:
			break;
		case self::RESULT_ACTION_TYPE_CLASS_METHOD:
			break;
		case self::RESULT_ACTION_TYPE_SLIDER:
			$set = $this->getSliderResultDataSet($row);
			if (!empty($set))
			{
				$convertedSet = CUtil::PhpToJSObject($set, false, true, false);
				$result = 'top.BX.SidePanel.Instance.postMessageTop(window, ''.$this->resultAction['NAME'].'', {filter: '.$convertedSet.'}); top.BX.SidePanel.Instance.getTopSlider().close(true);';
				unset($convertedSet);
			}
			break;
	}
	return $result;
}