History::undo

  1. Bitrix24 API (v. 23.675.0)
  2. landing
  3. History
  4. undo
  • Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/history.php
  • Класс: BitrixLandingHistory
  • Вызов: History::undo
public function undo(): bool
{
	if ($this->canUndo())
	{
		self::deactivate();
		$action = $this->getActionForStep($this->step, true);
		if ($action && $action->execute())
		{
			return $this->saveStep($this->step - 1);
		}
	}

	return false;
}

Добавить комментарий