History::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. landing
  3. History
  4. __construct
  • Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/history.php
  • Класс: BitrixLandingHistory
  • Вызов: History::__construct
public function __construct(int $entityId, string $entityType)
{
	if (!in_array($entityType, self::AVAILABLE_TYPES, true))
	{
		// todo :err or null
		return;
	}

	$this->entityId = $entityId;
	$this->entityType = $entityType;

	$this->loadStack();
	$this->loadStep();

	if ($this->step > $this->getStackCount())
	{
		$this->saveStep($this->getStackCount());
	}
}

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