Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
SocNetListService.php
1
<?php
2
3
namespace
Bitrix\Lists\Api\Service\ServiceFactory
;
4
5
use
Bitrix\Lists\Api\Data\IBlockService\IBlockElementFilter
;
6
use
Bitrix\Lists\Api\Data\IBlockService\IBlockListFilter
;
7
use
Bitrix\Main\Config\Option
;
8
9
final
class
SocNetListService
extends
ServiceFactory
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
}
Bitrix\Lists\Api\Data\IBlockService\IBlockElementFilter
Definition
IBlockElementFilter.php:8
Bitrix\Lists\Api\Data\IBlockService\IBlockListFilter
Definition
IBlockListFilter.php:8
Bitrix\Lists\Api\Data\IBlockService\IBlockListFilter\setSocNetGroupId
setSocNetGroupId(int $groupId)
Definition
IBlockListFilter.php:43
Bitrix\Lists\Api\Service\ServiceFactory\ServiceFactory
Definition
ServiceFactory.php:34
Bitrix\Lists\Api\Service\ServiceFactory\SocNetListService
Definition
SocNetListService.php:10
Bitrix\Lists\Api\Service\ServiceFactory\SocNetListService\fillElementListFilter
fillElementListFilter(IBlockElementFilter $filter)
Definition
SocNetListService.php:42
Bitrix\Lists\Api\Service\ServiceFactory\SocNetListService\fillElementDetailInfoFilter
fillElementDetailInfoFilter(IBlockElementFilter $filter)
Definition
SocNetListService.php:45
Bitrix\Lists\Api\Service\ServiceFactory\SocNetListService\setSocNetGroupId
setSocNetGroupId(int $socNetGroupId)
Definition
SocNetListService.php:24
Bitrix\Lists\Api\Service\ServiceFactory\SocNetListService\fillCatalogFilter
fillCatalogFilter(IBlockListFilter $filter)
Definition
SocNetListService.php:34
Bitrix\Lists\Api\Service\ServiceFactory\SocNetListService\getIBlockTypeId
static getIBlockTypeId()
Definition
SocNetListService.php:14
Bitrix\Main\Config\Option
Definition
option.php:15
Bitrix\Lists\Api\Service\ServiceFactory
Definition
AccessService.php:3
modules
lists
lib
Api
Service
ServiceFactory
SocNetListService.php
Создано системой
1.10.0