Documentation

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

Methods

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
bool

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
self

test()

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
Return values
string

        
On this page

Search results