1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CollabOptionProvider.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Socialnetwork\Collab\Provider;
6
7use Bitrix\Socialnetwork\Collab\Internals\CollabOptionTable;
8use Bitrix\Socialnetwork\Collab\Property\Option;
9use Bitrix\Socialnetwork\Helper\InstanceTrait;
10
12{
13 use InstanceTrait;
14
15 protected const CACHE_TTL = 10;
16
18 public function get(int $collabId): array
19 {
20 $collabOptions = CollabOptionTable::query()
21 ->setSelect(['NAME', 'VALUE'])
22 ->where('COLLAB_ID', $collabId)
23 ->setCacheTtl(static::CACHE_TTL)
24 ->exec()
25 ->fetchAll();
26
27 $options = [];
28
29 foreach ($collabOptions as $collabOption)
30 {
31 $options[] = new Option($collabOption['NAME'], $collabOption['VALUE']);
32 }
33
34 return $options;
35 }
36}
$options
Определения commerceml2.php:49
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804