- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/ui/uploader/fileremoved.php
- Класс: BitrixMainUIUploaderFileRemoved
- Вызов: FileRemoved::__construct
public function __construct($package, array $file)
{
$hash = File::initHash(array("id" => $file["id"], "name" => $file["name"]));
$this->data = array(
"hash" => $hash,
"id" => $file["id"],
"uploadStatus" => 'removed',
"name" => $file["name"],
);
$this->package = $package;
FileInputUtility::instance()->unRegisterFile($this->package->getCid(), $this->getHash());
}