Archive extends HttpResponse
Table of Contents
Constants
- MOD_ZIP_HEADER_NAME = 'X-Archive-Files'
Methods
- __construct() : mixed
- Archive constructor.
- addEntry() : void
- Add one entry. in current archive.
- isEmpty() : bool
- Returns true if the archive does not have entries.
- send() : void
Constants
MOD_ZIP_HEADER_NAME
public
mixed
MOD_ZIP_HEADER_NAME
= 'X-Archive-Files'
Methods
__construct()
Archive constructor.
public
__construct(string $name) : mixed
Parameters
- $name : string
-
Archive name.
addEntry()
Add one entry. in current archive.
public
addEntry(ArchiveEntry|EntryInterface $archiveEntry) : void
Parameters
- $archiveEntry : ArchiveEntry|EntryInterface
-
Entry for archive.
isEmpty()
Returns true if the archive does not have entries.
public
isEmpty() : bool
Return values
boolsend()
public
send() : void