Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
LoadResult.php
1
<?php
2
3
namespace
Bitrix\UI\FileUploader
;
4
5
class
LoadResult
extends
\Bitrix\Main\Result
implements \JsonSerializable
6
{
8
protected
$id
;
9
protected
?
FileInfo
$file
=
null
;
10
11
public
function
__construct
(
$id
)
12
{
13
$this->
id
=
$id
;
14
15
parent::__construct();
16
}
17
18
public
function
getId
()
19
{
20
return
$this->id
;
21
}
22
23
public
function
getFile
(): ?
FileInfo
24
{
25
return
$this->file
;
26
}
27
28
public
function
setFile
(
FileInfo
$file
): void
29
{
30
$this->file =
$file
;
31
}
32
33
public
function
jsonSerialize
(): array
34
{
35
return
[
36
'id'
=> $this->
getId
(),
37
'errors'
=> $this->
getErrors
(),
38
'success'
=> $this->
isSuccess
(),
39
'data'
=> [
40
'file'
=> $this->
getFile
(),
41
],
42
];
43
}
44
}
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\FileInfo
Definition
FileInfo.php:8
Bitrix\UI\FileUploader\LoadResult
Definition
LoadResult.php:6
Bitrix\UI\FileUploader\LoadResult\getId
getId()
Definition
LoadResult.php:18
Bitrix\UI\FileUploader\LoadResult\__construct
__construct($id)
Definition
LoadResult.php:11
Bitrix\UI\FileUploader\LoadResult\setFile
setFile(FileInfo $file)
Definition
LoadResult.php:28
Bitrix\UI\FileUploader\LoadResult\$file
FileInfo $file
Definition
LoadResult.php:9
Bitrix\UI\FileUploader\LoadResult\jsonSerialize
jsonSerialize()
Definition
LoadResult.php:33
Bitrix\UI\FileUploader\LoadResult\getFile
getFile()
Definition
LoadResult.php:23
Bitrix\UI\FileUploader\LoadResult\$id
$id
Definition
LoadResult.php:8
Bitrix\UI\FileUploader
Definition
CanUploadResult.php:3
modules
ui
lib
FileUploader
LoadResult.php
Создано системой
1.10.0