• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/internals/limitation.php
  • Класс: Bitrix\Crm\WebForm\Internals\LimitationTable
  • Вызов: LimitationTable::getCurrent
static function getCurrent(string $code, string $type): ?array
{
	$current = self::query()
		->setSelect(['ID', 'VALUE', 'DATE_STAT'])
		->where('DATE_STAT', new Type\Date)
		->where('TYPE', $type)
		->where('CODE', $code)
		->fetch()
	;

	if (!is_array($current))
	{
		return null;
	}

	return $current;
}