• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/restview/statistic.php
  • Класс: BitrixSaleExchangeIntegrationRestViewStatistic
  • Вызов: Statistic::checkArguments
public function checkArguments($name, $arguments): BitrixMainResult
{
	$r = new Result();

	if($name == 'upsert')
	{
		$r = $this->checkFieldsAdd($arguments['fields']);
	}
	elseif ($name == 'modify')
	{
		$required = $this->checkFieldsModify($arguments['fields']);

		if($required->isSuccess() === false)
		{
			$r->addError(new Error(implode(', ', $required->getErrorMessages())));
		}
	}
	else
	{
		throw new NotImplementedException('Check arguments. The method '.$name.' is not implemented.');
	}
	return $r;
}