1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
file.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Bizproc;
4
5
class
File
6
{
7
private
array
$file;
8
9
private
function
__construct(
array
$file)
10
{
11
$this->file = $file;
12
}
13
14
public
function
getFileArray
():
array
15
{
16
return
$this->file;
17
}
18
19
public
static
function
openById
(
int
$fileId):
Result
20
{
21
$file = \CFile::MakeFileArray($fileId);
22
if
(!is_array($file))
23
{
24
return
Result::createFromErrorCode(
Error::FILE_NOT_FOUND
);
25
}
26
27
return
Result::createOk([
'file'
=>
new
static
($file)]);
28
}
29
}
Bitrix\Bizproc\Error\FILE_NOT_FOUND
const FILE_NOT_FOUND
Определения
error.php:11
Bitrix\Bizproc\File\openById
static openById(int $fileId)
Определения
file.php:19
Bitrix\Bizproc\File\getFileArray
getFileArray()
Определения
file.php:14
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Bizproc\Result
Определения
DeviceResultHandler.php:3
Bitrix\Main\File
Определения
Image.php:9
bitrix
modules
bizproc
lib
file.php
Создано системой
1.14.0