Archive
class Archive (View source)
Archive class.
Properties
string | $command | Archive command. | |
boolean | $strict | Strict error checking. |
Methods
void
__construct(string $archive)
Constructor.
string
__toString()
Convert object of class to string.
object
add_files(mixed $files)
Add files to archive file.
mixed
get_files()
Returns files to be added to archive file.
string
zipinfo(array $options = [])
Returns archive file info (zip).
object
zip(array $options = [], bool $strict = false)
Create archive file (zip).
object
unzip(array $options = [], array $arguments = [], bool $strict = true)
Extract archive file (zip).
object
tar(array $options = [], array $arguments = [], bool $strict = true)
Create archive file (tar).
object
xz(array $options = [], bool $strict = true)
Compresses archive file (xz).
mixed
run()
Executes archive command.
Details
at line 49
void
__construct(string $archive)
Constructor.
at line 59
string
__toString()
Convert object of class to string.
at line 70
final object
add_files(mixed $files)
Add files to archive file.
at line 81
final mixed
get_files()
Returns files to be added to archive file.
at line 92
final string
zipinfo(array $options = [])
Returns archive file info (zip).
at line 118
final object
zip(array $options = [], bool $strict = false)
Create archive file (zip).
at line 136
final object
unzip(array $options = [], array $arguments = [], bool $strict = true)
Extract archive file (zip).
at line 154
final object
tar(array $options = [], array $arguments = [], bool $strict = true)
Create archive file (tar).
at line 171
final object
xz(array $options = [], bool $strict = true)
Compresses archive file (xz).
at line 186
final mixed
run()
Executes archive command.
.