Documentation

ArchiveEntry

\Bitrix\Main\Engine\Response\Zip\ArchiveEntry object describes element of zip-archive.

Methods

Method Description Available from version
createFromFileId(
   $fileId,
   $moduleId = null
)
Creates ArchiveEntry object, by using $fileId. $fileId value is used for searching entry in table b_file by ID. Параметры:
  • $fileId {int} - file ID from table b_file.
  • $moduleId {string} - indicates module, for matching with data in b_file.MODULE_ID. By default: null, it means check is disabled.
createFromFilePath(
   $filePath,
   $name = null
)
Creates ArchiveEntry object by using path to file. Parameters:
  • $filePath {string} - absolute path to file. Based on this file, file data is retrieved using \CFile::MakeFileArray.
  • $name {string} - file name.
getName(
)
Getting file name.
setName(
   $name
)
Sets file name.
getPath(
)
Getting absolute path to file.
getSize(
)
Getting file size in bytes.

© «Bitrix24», 2001-2022
Up