1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
updatecontactdtocollection.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sender\Internals\Dto;
4
8
class
UpdateContactDtoCollection
9
{
13
private
array
$items = [];
14
22
public
function
append
(
UpdateContact
$item): self {
23
$this->items[] = $item;
24
return
$this;
25
}
26
32
public
function
all
():
array
{
33
return $this->items;
34
}
35
41
public
function
toArray
():
array
{
42
return array_map(fn(
UpdateContact
$item) => $item->
toArray
(), $this->items);
43
}
44
48
public
function
getOnDuplicateKeyUpdateFields
()
49
{
50
$item = $this->items[0] ??
null
;
51
52
if
(!$item)
53
{
54
return
[];
55
}
56
57
return
$item->getOnDuplicateKeyUpdateFields();
58
}
59
65
public
function
count
(): int {
66
return
count
($this->items);
67
}
68
}
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection
Определения
updatecontactdtocollection.php:9
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\append
append(UpdateContact $item)
Определения
updatecontactdtocollection.php:22
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\toArray
toArray()
Определения
updatecontactdtocollection.php:41
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\count
count()
Определения
updatecontactdtocollection.php:65
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\getOnDuplicateKeyUpdateFields
getOnDuplicateKeyUpdateFields()
Определения
updatecontactdtocollection.php:48
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\all
all()
Определения
updatecontactdtocollection.php:32
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Sender\Internals\Dto\UpdateContact
Определения
updatecontact.php:6
bitrix
modules
sender
lib
internals
dto
updatecontactdtocollection.php
Создано системой
1.14.0