ArchiveDriver
in
Archive driver interface.
Table of Contents
Methods
- addData() : void
- Add data to the archive.
- create() : bool
- Creates an archive and optionally, saves it to a file.
Methods
addData()
Add data to the archive.
public
addData(string $file, string $name[, string|null $contents = null ]) : void
Parameters
- $file : string
-
Filename
- $name : string
-
Name of file in archive
- $contents : string|null = null
create()
Creates an archive and optionally, saves it to a file.
public
create(array<string|int, mixed> $paths[, string|false $filename = false ]) : bool
Parameters
- $paths : array<string|int, mixed>
-
Filenames to add
- $filename : string|false = false
-
File to save the archive to