Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
GetIBlockByIdResponse.php
1
<?php
2
3
namespace
Bitrix\Lists\Api\Response\IBlockService
;
4
5
use
Bitrix\Lists\Api\Response\Response
;
6
7
class
GetIBlockByIdResponse
extends
Response
8
{
9
public
function
getIBlock
(): array
10
{
11
return
$this->data[
'iBlock'
] ?? [];
12
}
13
14
public
function
setIBlock
(array $iBlock): static
15
{
16
$this->data[
'iBlock'
] = $iBlock;
17
18
return
$this;
19
}
20
21
public
function
getFieldById
(
string
$fieldId)
22
{
23
$iBlock = $this->data[
'iBlock'
] ?? [];
24
25
return
$iBlock[$fieldId] ??
null
;
26
}
27
}
Bitrix\Lists\Api\Response\IBlockService\GetIBlockByIdResponse
Definition
GetIBlockByIdResponse.php:8
Bitrix\Lists\Api\Response\IBlockService\GetIBlockByIdResponse\getIBlock
getIBlock()
Definition
GetIBlockByIdResponse.php:9
Bitrix\Lists\Api\Response\IBlockService\GetIBlockByIdResponse\getFieldById
getFieldById(string $fieldId)
Definition
GetIBlockByIdResponse.php:21
Bitrix\Lists\Api\Response\IBlockService\GetIBlockByIdResponse\setIBlock
setIBlock(array $iBlock)
Definition
GetIBlockByIdResponse.php:14
Bitrix\Lists\Api\Response\Response
Definition
Response.php:6
Bitrix\Lists\Api\Response\IBlockService
Definition
AddIBlockElementResponse.php:3
modules
lists
lib
Api
Response
IBlockService
GetIBlockByIdResponse.php
Создано системой
1.10.0