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