method
public
static
LeadSumStatisticsTable::synchronize()
Сигнатура
public static synchronize(mixed $ownerID, array<string|int, mixed> $data) : void
Параметры
$ownerID
mixed
$data
array<string|int, mixed>
Возвращаемое значение
void
Как применяется в LeadSumStatisticsTable
LeadSumStatisticsTable::synchronize() — метод класса \Bitrix\Crm\Statistics\Entity\LeadSumStatisticsTable модуля «CRM». Это ORM-сущность D7 (наследник DataManager): строки читаются как объекты EO_LeadSumStatistics, наборы — как EO_LeadSumStatistics_Collection.
Статический метод — вызывается через имя класса LeadSumStatisticsTable, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Crm\Statistics\Entity\LeadSumStatisticsTable;
Loader::includeModule('crm');
$ownerID = null;
$data = [];
LeadSumStatisticsTable::synchronize($ownerID, $data);Собственные методы LeadSumStatisticsTable
deleteByFilter()deleteByOwner()getSumSlotFieldNames()synchronizeSumFields()Синхронизировать поля суммupsert()
synchronize() есть и у других классов модуля «CRM»: ActivityChannelBinding, DealChannelBinding, DealSumStatisticsTable, InvoiceSumStatisticsTable, UserFieldSynchronizer.
Исходный файл: source/crm/lib/statistics/entity/leadsumstatistics.php:160

