Limiter::getDaily

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Limiter
  4. getDaily
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/bitrix24/limitation/limiter.php
  • Класс: Bitrix\Sender\Integration\Bitrix24\Limitation\Limiter
  • Вызов: Limiter::getDaily
static function getDaily()
{
	$counter = new DailyLimit();
	return Transport\CountLimiter::create()
		->withName('mail_per_day')
		->withLimit($counter->getLimit())
		->withUnit("1 " . Transport\iLimiter::DAYS)
		->withCurrent(
			function () use ($counter)
			{
				return $counter->getCurrent();
			}
		)
		->setParameter('setupUri', 'javascript:top.BX.Helper.show("redirect=detail&code=6846227")')
		->setParameter('setupCaption', Loc::getMessage('SENDER_INTEGRATION_BITRIX24_LIMITER_DAILY_DETAILS'));
}

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