• Модуль: messageservice
  • Путь к файлу: ~/bitrix/modules/messageservice/lib/sender/limitation.php
  • Класс: BitrixMessageServiceSenderLimitation
  • Вызов: Limitation::checkDailyLimit
static function checkDailyLimit($senderId, $fromId)
{
	$limit = static::getDailyLimit($senderId, $fromId);
	if ($limit > 0)
	{
		$current = MessageTable::getDailyCount($senderId, $fromId);

		return ($current < $limit);
	}
	return true;
}