Метод selectByCount

private

Сигнатура метода

private function selectByCount(array $calls, int $dealId, int $limit, array &$selected, int &$consumed): void

Возвращает: void

Описание

Walks one deal's calls in freshness order, counting ready and newly-selected calls toward the shared limit. A terminal-empty (Skip) call carries no work and is ignored; a Ready call occupies a slot without a launch; an untranscribed (None/Pending) call occupies a slot and is handed to the gate.

Параметры

5
Имя Тип По умолчанию Флаги
$calls array —
—
$dealId int —
—
$limit int —
—
$selected array —
by-ref
$consumed int —
by-ref

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/RepeatSale/Transcription/InScopeCallCollector.php
Расположение метода в файле
Строки 132–153

Исходный код

PHP