- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/zip.php
- Класс: CZip
- Вызов: CZip::Extract
public function Extract($arParams = 0)
{
$this->_errorReset();
if (!$this->_checkFormat())
{
return (0);
}
if ($arParams === 0)
{
$arParams = [];
}
if ($this->_checkParams($arParams,
['extract_as_string' => false,
'add_path' => '',
'remove_path' => '',
'remove_all_path' => false,
'callback_pre_extract' => '',
'callback_post_extract' => '',
'set_chmod' => 0,
'by_name' => '',
'by_index' => '',
'by_preg' => '']) != 1)
{
return 0;
}
$arTmpList = [];
if ($this->_extractByRule($arTmpList, $arParams) != 1)
{
unset($arTmpList);
return (0);
}
return $arTmpList;
}