1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
file.php
См. документацию.
1<?php
2
3namespace Bitrix\Bizproc;
4
5class 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}
const FILE_NOT_FOUND
Определения error.php:11
static openById(int $fileId)
Определения file.php:19
getFileArray()
Определения file.php:14
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения Image.php:9