1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
fileremoved.php
См. документацию.
1<?php
2namespace Bitrix\Main\UI\Uploader;
3
4use Bitrix\Main\UI\FileInputUtility;
5
7{
9 protected $package;
11 protected $data = array();
12
18 public function __construct($package, array $file)
19 {
20 $hash = File::initHash(array("id" => $file["id"], "name" => $file["name"]));
21 $this->data = array(
22 "hash" => $hash,
23 "id" => $file["id"],
24 "uploadStatus" => 'removed',
25 "name" => $file["name"],
26 );
27
28 $this->package = $package;
29
30 FileInputUtility::instance()->unRegisterFile($this->package->getCid(), $this->getHash());
31 }
32
36 public function getId()
37 {
38 return $this->data["id"];
39 }
40
44 public function getHash()
45 {
46 return $this->data["hash"];
47 }
48
51 public function getName()
52 {
53 return $this->data["name"];
54 }
55
60 public function toArray()
61 {
62 return $this->data;
63 }
64
65 public function isUploaded()
66 {
67 return true;
68 }
69
70 public function hasError()
71 {
72 return false;
73 }
74}
$hash
Определения ajax_redirector.php:8
static initHash($file=array())
Определения file.php:75
__construct($package, array $file)
Определения fileremoved.php:18
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804