Tar
in package
implements
ArchiveDriver
Archive library tar driver.
Table of Contents
Interfaces
- ArchiveDriver
- Archive driver interface.
Properties
- $data : mixed
Methods
- addData() : void
- Add data to the archive.
- create() : bool|string
- Creates an archive and optionally, saves it to a file.
Properties
$data
protected
mixed
$data
= ''
Methods
addData()
Add data to the archive.
public
addData(mixed $file, mixed $name[, mixed $contents = null ]) : void
Parameters
- $file : mixed
-
Filename
- $name : mixed
-
Name of file in archive
- $contents : mixed = null
create()
Creates an archive and optionally, saves it to a file.
public
create(array<string|int, mixed> $paths[, string|false $filename = false ]) : bool|string
Parameters
- $paths : array<string|int, mixed>
- $filename : string|false = false
Return values
bool|string —Returns string when $filename is false, bool otherwise