Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Response.php
1
<?php
2
3
namespace
Bitrix\Lists\Api\Response
;
4
5
class
Response
extends
\Bitrix\Main\Result
6
{
10
public
function
getPermission
(): int | string
11
{
12
return
$this->data[
'permission'
] ?? \CListPermissions::ACCESS_DENIED;
13
}
14
19
public
function
setPermission
(
int
|
string
$permission): static
20
{
21
$this->data[
'permission'
] = $permission;
22
23
return
$this;
24
}
25
30
public
function
fillFromResponse
(
Response
$response): static
31
{
32
$this
33
->setPermission($response->
getPermission
())
34
->addErrors($response->
getErrors
())
35
;
36
37
return
$this;
38
}
39
}
Bitrix\Lists\Api\Response\Response
Definition
Response.php:6
Bitrix\Lists\Api\Response\Response\setPermission
setPermission(int|string $permission)
Definition
Response.php:19
Bitrix\Lists\Api\Response\Response\getPermission
getPermission()
Definition
Response.php:10
Bitrix\Lists\Api\Response\Response\fillFromResponse
fillFromResponse(Response $response)
Definition
Response.php:30
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\ORM\Data\Result\getErrors
getErrors()
Definition
result.php:67
Bitrix\Lists\Api\Response
Definition
CheckPermissionsResponse.php:3
modules
lists
lib
Api
Response
Response.php
Создано системой
1.10.0