• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/model/queueuser.php
  • Класс: BitrixVoximplantModelQueueUserTable
  • Вызов: QueueUserTable::deleteByUserId
static function deleteByUserId($userId)
{
	$userId = (int)$userId;
	if($userId <= 0)
		throw new ArgumentException('User id should be greater than zero', 'userId');

	$connection = Application::getConnection();
	$entity = self::getEntity();

	$sql = "DELETE FROM ".$entity->getDBTableName()." WHERE USER_ID = ".$userId;
	$connection->queryExecute($sql);

	$result = new EntityDeleteResult();
	return $result;
}