• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discount/preset/basepreset.php
  • Класс: BitrixSaleDiscountPresetBasePreset
  • Вызов: BasePreset::executeAjaxAction
public function executeAjaxAction($actionName)
{
	CUtil::jSPostUnescape();
	$this->request->addFilter(new PostDecodeFilter);

	$methodName = 'processAjaxAction' . $actionName;
	if(!method_exists($this, $methodName))
	{
		throw new SystemException("Could not find method {$methodName}");
	}

	$result = call_user_func_array(array($this, $methodName), array(

	));

	header('Content-Type:application/json; charset=UTF-8');
	CMain::FinalActions(Json::encode($result));
}