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