• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/zip.php
  • Класс: CZip
  • Вызов: CZip::Delete
public function Delete($arParams)
{
	$this->_errorReset();

	if (!$this->_checkFormat())
	{
		return (0);
	}

	if ($this->_checkParams($arParams, ['by_name' => '', 'by_index' => '', 'by_preg' => '']) != 1)
	{
		return 0;
	}

	//at least one rule should be set
	if (($arParams['by_name'] == '') && ($arParams['by_index'] == '') && ($arParams['by_preg'] == ''))
	{
		$this->_errorLog("ERR_PARAM_RULE", GetMessage("MAIN_ZIP_ERR_PARAM_RULE"));
		return 0;
	}

	$arTmpList = [];
	if ($this->_deleteByRule($arTmpList, $arParams) != 1)
	{
		unset($arTmpList);
		return (0);
	}

	return $arTmpList;
}