• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/internals/model/counter.php
  • Класс: Bitrix\Sender\Internals\Model\CounterTable
  • Вызов: CounterTable::getValueByCode
static function getValueByCode($code)
{
	$row = static::getRow(['filter' => ['=CODE' => $code], 'cache' => ['ttl' => 36000]]);
	return intval($row ? $row['VALUE'] : 0);
}