- Модуль: rest
- Путь к файлу: ~/bitrix/modules/rest/lib/configuration/action/import.php
- Класс: BitrixRestConfigurationActionImport
- Вызов: Import::doClean
public function doClean($code, $step, $next, bool $clearFull = false): array
{
$result = [
'next' => false,
];
if ($code)
{
$additionalOption = $this->getSetting()->get(Setting::SETTING_ACTION_ADDITIONAL_OPTION);
$data = Controller::callEventClear(
[
'CODE' => $code,
'STEP' => $step,
'NEXT' => $next,
'CONTEXT' => $this->getContextEntity(),
'CONTEXT_USER' => $this->getContext(),
'CLEAR_FULL' => $clearFull,
'PREFIX_NAME' => Loc::getMessage('REST_CONFIGURATION_INSTALL_CLEAR_PREFIX_NAME'),//todo: lang file
'MANIFEST_CODE' => $this->getManifestCode(),
'IMPORT_MANIFEST' => Manifest::get($this->getManifestCode()),
'ADDITIONAL_OPTION' => $additionalOption,
]
);
$this->getNotificationInstance()->save($data);
if (isset($data['NEXT']))
{
$result['next'] = $data['NEXT'];
}
}
return $result;
}