1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ChatFields.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Chat\Fields;
4
6{
7 private static array $instance = [];
8
9 public function __construct(protected int $chatId)
10 {}
11
12 public static function getInstance(int $chatId): self
13 {
14 if (self::$instance[$chatId] === null)
15 {
16 self::$instance[$chatId] = new self($chatId);
17 }
18
19 return self::$instance[$chatId];
20 }
21
22 public function getField(Field $field): BaseField
23 {
24 return FieldFactory::getInstance()->getField($field, $this->chatId);
25 }
26
28 {
30 }
31
33 {
34 $result = [];
35 foreach ($fields as $field)
36 {
37 $result[] = $this->getField($field)->toRestFormat($option);
38 }
39
40 return array_merge(...$result);
41 }
42}
getParamsInternal(array $fields, $option)
Определения ChatFields.php:32
getOptionalParamsToRest(array $option=[])
Определения ChatFields.php:27
getField(Field $field)
Определения ChatFields.php:22
__construct(protected int $chatId)
Определения ChatFields.php:9
static getInstance(int $chatId)
Определения ChatFields.php:12
</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
@ getOptionalParams
Определения Field.php:10
$option
Определения options.php:1711
$fields
Определения yandex_run.php:501