83 $deletedRequestName = $controlId.
'_deleted';
88 $requestValues = $request->getValues();
91 if (isset($requestValues[
'data']) && is_array($requestValues[
'data']))
93 $requestValues = $requestValues[
'data'];
96 if(isset($requestValues[$deletedRequestName]) && is_array($requestValues[$deletedRequestName]))
98 foreach($requestValues[$deletedRequestName] as $deletedFile)
101 in_array($deletedFile, $arSessionFilesList)
102 && \CFile::SaveFile(array(
103 'old_file' => $deletedFile,
107 $result[] = $deletedFile;
162 \Bitrix\Main\Application::getInstance()->getSession()[
self::SESSION_LIST][$controlId] = array();
168 if($arSession[
"SESSID"] != bitrix_sessid()
169 || $ts-$arSession[
"TS"] > self::SESSION_TTL)
178 \Bitrix\Main\Application::getInstance()->getSession()[
self::SESSION_LIST][$controlId][$CID] = array(
180 "SESSID" => bitrix_sessid()
182 \Bitrix\Main\Application::getInstance()->getSession()[self::SESSION_VAR_PREFIX.$CID] = array();