• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/routing/router.php
  • Класс: BitrixVoximplantRoutingRouter
  • Вызов: Router::getCurrentNode
protected function getCurrentNode(Node $executionRoot)
{
	if($this->call->getStage() == '')
	{
		return $executionRoot;
	}

	$currentStage = $executionRoot;

	$seenIds = [];

	do
	{
		if($seenIds[$currentStage->getId()] ?? null)
		{
			return false;
		}
		$seenIds[$currentStage->getId()] = true;

		if($currentStage->getId() === $this->call->getStage())
		{
			return $currentStage;
		}
	} while($currentStage = $currentStage->getNext());

	return false;
}