Bitrix API

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
string

createFromFileId()

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
static

createFromFilePath()

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
static

getCrc32()

public getCrc32() : string
Return values
string

getName()

Gets name of current file.

public getName() : string
Return values
string

getPath()

Gets full path of current file.

public getPath() : string
Return values
string

getSize()

Gets size of current file.

public getSize() : int
Return values
int

        
On this page

Search results