• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/api/event.php
  • Класс: BitrixRestApiEvent
  • Вызов: Event::eventTest
static function eventTest($query, $n, CRestServer $server)
{
	if($server->getAuthType() !== Auth::AUTH_TYPE)
	{
		throw new AuthTypeException();
	}

	$clientInfo = AppTable::getByClientId($server->getClientId());

	foreach(GetModuleEvents("rest", "OnRestAppTest", true) as $event)
	{
		ExecuteModuleEventEx($event, array(array(
			"APP_ID" => $clientInfo["ID"],
			"QUERY" => $query
		)));
	}

	return 1;
}