1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
contactupdateservice.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sender\Service;
4
5
use Bitrix\Sender\ContactTable;
6
use Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection;
7
use Bitrix\Sender\Internals\SqlBatch;
8
9
final
class
ContactUpdateService
10
{
18
public
function
updateByCollection
(
UpdateContactDtoCollection
$collection): void
19
{
20
foreach
(SqlBatch::divide($collection->
toArray
()) as $list)
21
{
22
SqlBatch::insert(
23
ContactTable::getTableName
(),
24
$list,
25
$collection->
getOnDuplicateKeyUpdateFields
(),
26
ContactTable::getConflictFields
(),
27
);
28
}
29
}
30
}
Bitrix\Sender\ContactTable\getConflictFields
static getConflictFields()
Определения
contact.php:618
Bitrix\Sender\ContactTable\getTableName
static getTableName()
Определения
contact.php:53
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection
Определения
updatecontactdtocollection.php:9
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\toArray
toArray()
Определения
updatecontactdtocollection.php:41
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\getOnDuplicateKeyUpdateFields
getOnDuplicateKeyUpdateFields()
Определения
updatecontactdtocollection.php:48
Bitrix\Sender\Service\ContactUpdateService
Определения
contactupdateservice.php:10
Bitrix\Sender\Service\ContactUpdateService\updateByCollection
updateByCollection(UpdateContactDtoCollection $collection)
Определения
contactupdateservice.php:18
bitrix
modules
sender
lib
service
contactupdateservice.php
Создано системой
1.14.0