ArchiveEntry
Use \Bitrix\Main\Engine\Response\Zip\DirectoryEntry or \Bitrix\Main\Engine\Response\Zip\FileEntry instead.
Table of Contents
Methods
- __toString() : string
- Returns representation zip entry as string.
- createFromFileId() : static
- Creates Entry from file id (from b_file).
- createFromFilePath() : static
- Creates Entry from file path.
- getCrc32() : string
- getName() : string
- Gets name of current file.
- getPath() : string
- Gets full path of current file.
- getSize() : int
- Gets size of current file.
- setName() : ArchiveEntry
Methods
__toString()
Returns representation zip entry as string.
public
__toString() : string
Return values
stringcreateFromFileId()
Creates Entry from file id (from b_file).
public
static createFromFileId(int $fileId[, string $moduleId = null ]) : static
Parameters
- $fileId : int
-
File id from b_file.
- $moduleId : string = null
-
Module id for strong restriction.
Return values
staticcreateFromFilePath()
Creates Entry from file path.
public
static createFromFilePath(string $filePath[, string|null $name = null ]) : static
Parameters
- $filePath : string
-
File id from b_file.
- $name : string|null = null
Return values
staticgetCrc32()
public
getCrc32() : string
Return values
stringgetName()
Gets name of current file.
public
getName() : string
Return values
stringgetPath()
Gets full path of current file.
public
getPath() : string
Return values
stringgetSize()
Gets size of current file.
public
getSize() : int
Return values
intsetName()
public
setName(string $name) : ArchiveEntry
Parameters
- $name : string