Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
SocNetListService.php
1<?php
2
4
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 {
36 $filter
37 ->setSocNetGroupId($this->socNetGroupId)
38 ->setCheckPermission(false)
39 ;
40 }
41
42 protected function fillElementListFilter(IBlockElementFilter $filter): void
43 {}
44
45 protected function fillElementDetailInfoFilter(IBlockElementFilter $filter): void
46 {}
47}