1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
UpdateCollabChatTrait.php
См. документацию.
1<?php
2
4
9
10trait UpdateCollabChatTrait
11{
12 protected function updateChat(Collab $collab, array $fields): Result
13 {
14 $result = new Result();
15
16 if (empty($fields))
17 {
18 return $result;
19 }
20
21 $updateService = IM\Messenger::getUpdateService($collab->getChatId(), $fields);
22
23 if ($updateService === null)
24 {
25 $result->addError(new Error('Update service not found'));
26
27 return $result;
28 }
29
30 $updateResult = $updateService->updateChat();
31 if (!$updateResult->isSuccess())
32 {
33 $result->addErrors($updateResult->getErrors());
34 }
35
36 return $result;
37 }
38}
Определения result.php:20
Определения error.php:15
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$fields
Определения yandex_run.php:501