• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/todocreatenotification.php
  • Класс: Bitrix\Crm\Activity\TodoCreateNotification
  • Вызов: TodoCreateNotification::getCurrentSkipPeriod
public function getCurrentSkipPeriod(): ?string
{
	if (!$this->isSkipped())
	{
		return null;
	}

	$value = \CUserOptions::GetOption('crm', $this->getOptionName(), '');
	if ($value === '')
	{
		return null;
	}
	[$period, $skipTo] = explode('.', $value, 2);

	if (!$this->isPeriodExists($period))
	{
		return null;
	}

	return $period;
}