SevenZipProcess
in package
Table of Contents
Properties
- $binaryPath : string|null
- $isDarwin : bool
- $isRar : bool
- $outputDir : string|null
- $password : string|null
- $path : string
Methods
- content() : mixed
- execute() : array<string|int, string>
- extract() : bool
- list() : array<string|int, ArchiveItem>
- make() : self
- test() : bool
- __construct() : mixed
- escapeArgument() : string
- Escapes a string to be used as a shell argument.
Properties
$binaryPath
protected
string|null
$binaryPath
= null
$isDarwin
protected
bool
$isDarwin
= false
$isRar
protected
bool
$isRar
= false
$outputDir
protected
string|null
$outputDir
= null
$password
protected
string|null
$password
= null
$path
protected
string
$path
Methods
content()
public
content(ArchiveItem $file) : mixed
Parameters
- $file : ArchiveItem
execute()
public
execute(string $command, array<string|int, string> $args) : array<string|int, string>
Parameters
- $command : string
- $args : array<string|int, string>
Return values
array<string|int, string>extract()
public
extract(string $toPath[, array<string|int, ArchiveItem> $files = null ]) : bool
Parameters
- $toPath : string
- $files : array<string|int, ArchiveItem> = null
Return values
boollist()
public
list() : array<string|int, ArchiveItem>
Return values
array<string|int, ArchiveItem>make()
public
static make(string $path[, string|null $password = null ][, string|null $binaryPath = null ]) : self
Parameters
- $path : string
- $password : string|null = null
- $binaryPath : string|null = null
Return values
selftest()
public
static test([bool $exception = true ]) : bool
Parameters
- $exception : bool = true
Return values
bool__construct()
protected
__construct(string $path[, string|null $password = null ][, string|null $binaryPath = null ]) : mixed
Parameters
- $path : string
- $password : string|null = null
- $binaryPath : string|null = null
escapeArgument()
Escapes a string to be used as a shell argument.
private
escapeArgument(string|null $argument) : string
Parameters
- $argument : string|null