EventHandler::lockTimelineQueue

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. EventHandler
  4. lockTimelineQueue
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/eventhandler.php
  • Класс: Bitrix\Sender\Integration\Crm\EventHandler
  • Вызов: EventHandler::lockTimelineQueue
static function lockTimelineQueue($letterId)
{
	$connection = Application::getInstance()->getConnection();
	if ($connection instanceof DB\MysqlCommonConnection)
	{
		$lockDb = $connection->query(
			"SELECT GET_LOCK('time_line_queue_{$letterId}', 0) as L",
			false,
			"File: ".__FILE__."
Line: ".__LINE__ ); $lock = $lockDb->fetch(); if ($lock["L"] == "1") { return true; } } return false; }

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