1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
SocNetListService.php
См. документацию.
1<?php
2
3namespace Bitrix\Lists\Api\Service\ServiceFactory;
4
5use Bitrix\Lists\Api\Data\IBlockService\IBlockElementFilter;
6use Bitrix\Lists\Api\Data\IBlockService\IBlockListFilter;
7use Bitrix\Main\Config\Option;
8
10{
11 private static string $iBlockTypeId = '';
12 private int $socNetGroupId;
13
14 public static function getIBlockTypeId(): string
15 {
16 if (empty(self::$iBlockTypeId))
17 {
18 self::$iBlockTypeId = Option::get('lists', 'socnet_iblock_type_id');
19 }
20
21 return self::$iBlockTypeId;
22 }
23
24 public function setSocNetGroupId(int $socNetGroupId): SocNetListService
25 {
26 if ($socNetGroupId > 0)
27 {
28 $this->socNetGroupId = $socNetGroupId;
29 }
30
31 return $this;
32 }
33
34 protected function fillCatalogFilter(IBlockListFilter $filter): void
35 {
37 ->setSocNetGroupId($this->socNetGroupId)
38 ->setCheckPermission(false)
39 ;
40 }
41
43 {}
44
47}
fillElementListFilter(IBlockElementFilter $filter)
Определения SocNetListService.php:42
fillElementDetailInfoFilter(IBlockElementFilter $filter)
Определения SocNetListService.php:45
fillCatalogFilter(IBlockListFilter $filter)
Определения SocNetListService.php:34
$filter
Определения iblock_catalog_list.php:54