PHP Class Pop\Archive\Adapter\Rar

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Archive\Adapter\ArchiveInterface
Afficher le fichier Open project: nicksagona/PopPHP

Protected Properties

Свойство Type Description
$archive RarArchive RarArchive object
$password string Archive password
$path string Archive path

Méthodes publiques

Méthode Description
__construct ( Archive $archive, string $password = null ) : Rar Method to instantiate an archive adapter object
addFiles ( string | array $files ) : void Method to create an archive file
archive ( ) : mixed Method to return the archive object
extract ( string $to = null ) : void Method to extract an archived and/or compressed file
listFiles ( boolean $full = false ) : array Method to return a listing of the contents of an archived file

Method Details

__construct() public méthode

Method to instantiate an archive adapter object
public __construct ( Archive $archive, string $password = null ) : Rar
$archive Pop\Archive\Archive
$password string
Résultat Rar

addFiles() public méthode

Method to create an archive file
public addFiles ( string | array $files ) : void
$files string | array
Résultat void

archive() public méthode

Method to return the archive object
public archive ( ) : mixed
Résultat mixed

extract() public méthode

Method to extract an archived and/or compressed file
public extract ( string $to = null ) : void
$to string
Résultat void

listFiles() public méthode

Method to return a listing of the contents of an archived file
public listFiles ( boolean $full = false ) : array
$full boolean
Résultat array

Property Details

$archive protected_oe property

RarArchive object
protected RarArchive $archive
Résultat RarArchive

$password protected_oe property

Archive password
protected string $password
Résultat string

$path protected_oe property

Archive path
protected string $path
Résultat string