• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/tourguide/firstprojectcreation.php
  • Класс: BitrixTasksTourGuideFirstProjectCreation
  • Вызов: FirstProjectCreation::proceed
public function proceed(): bool
{
	if ($this->isFinished() || $this->isInLocalSession())
	{
		return false;
	}

	if ($this->isGroupExist())
	{
		return false;
	}

	if (($currentStep = $this->getCurrentStep()) && !$currentStep->isFinished())
	{
		$currentStep->makeTry();

		if ($currentStep->isFinished() && $this->isCurrentStepTheLast())
		{
			$this->finish();
			return true;
		}

		$this->saveToLocalSession();
		$this->saveData();

		return true;
	}

	return false;
}