Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
CanUploadResult.php
1
<?php
2
3
namespace
Bitrix\UI\FileUploader
;
4
5
class
CanUploadResult
extends
\Bitrix\Main\Result
implements \JsonSerializable
6
{
7
public
function
__construct
()
8
{
9
parent::__construct();
10
}
11
12
public
static
function
reject
(): self
13
{
14
$canUploadResult =
new
self
();
15
$canUploadResult->addError(
new
UploaderError
(
UploaderError::FILE_UPLOAD_ACCESS_DENIED
));
16
17
return
$canUploadResult;
18
}
19
20
public
function
jsonSerialize
(): array
21
{
22
return
[
23
'errors'
=> $this->
getErrors
(),
24
'success'
=> $this->
isSuccess
(),
25
];
26
}
27
}
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\ORM\Data\Result\getErrors
getErrors()
Definition
result.php:67
Bitrix\Main\Result\isSuccess
isSuccess()
Definition
result.php:39
Bitrix\UI\FileUploader\CanUploadResult
Definition
CanUploadResult.php:6
Bitrix\UI\FileUploader\CanUploadResult\__construct
__construct()
Definition
CanUploadResult.php:7
Bitrix\UI\FileUploader\CanUploadResult\reject
static reject()
Definition
CanUploadResult.php:12
Bitrix\UI\FileUploader\CanUploadResult\jsonSerialize
jsonSerialize()
Definition
CanUploadResult.php:20
Bitrix\UI\FileUploader\UploaderError
Definition
UploaderError.php:10
Bitrix\UI\FileUploader\UploaderError\FILE_UPLOAD_ACCESS_DENIED
const FILE_UPLOAD_ACCESS_DENIED
Definition
UploaderError.php:26
Bitrix\UI\FileUploader
Definition
CanUploadResult.php:3
modules
ui
lib
FileUploader
CanUploadResult.php
Создано системой
1.10.0