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