Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
runtimefieldsmanager.php
1<?php
2
4
6{
7 private array $runtimeFields = [];
8
9 public function __construct()
10 {
11 $runtimeFields = [];
12 }
13
14 public function add($fieldName): void
15 {
16 $this->runtimeFields[] = $fieldName;
17 }
18
19 public function has($fieldName): bool
20 {
21 return (in_array($fieldName, $this->runtimeFields, true));
22 }
23
24 public function get(): array
25 {
26 return $this->runtimeFields;
27 }
28}