Joomla CMS  3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
Référence de la classe Tar
+ Graphe d'héritage de Tar:

Fonctions membres publiques

 __construct ($options=array())
 
 extract ($archive, $destination)
 

Fonctions membres publiques statiques

static isSupported ()
 

Fonctions membres protégées

 getTarInfo (&$data)
 

Attributs protégés

 $options = array()
 

Attributs privés

 $types
 
 $data
 
 $metadata
 

Description détaillée

Tar format adapter for the Archive package

This class is inspired from and draws heavily in code and concept from the Compress package of The Horde Project http://www.horde.org

Michael Slusarz slusa.nosp@m.rz@h.nosp@m.orde..nosp@m.org Michael Cochrane mike@.nosp@m.graf.nosp@m.tonha.nosp@m.ll.c.nosp@m.o.nz

Depuis
1.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options = array())

Create a new Archive object.

Paramètres
array | \ArrayAccess$optionsAn array of options or an object that implements
Depuis
1.0
Exceptions

Références Tar\$options.

Documentation des fonctions membres

◆ extract()

extract (   $archive,
  $destination 
)

Extract a ZIP compressed file to a given path

Paramètres
string$archivePath to ZIP archive to extract
string$destinationPath to extract archive into
Renvoie
boolean True if successful
Depuis
1.0
Exceptions

Implémente ExtractableInterface.

Références $buffer, $i, $n, $path, $type, Path\clean(), Folder\create(), Tar\getTarInfo(), null, et File\write().

◆ getTarInfo()

getTarInfo ( $data)
protected

Get the list of files/data from a Tar archive buffer.

Paramètres
string$dataThe Tar archive buffer.
Renvoie
array Archive metadata array
KEY: Position in the array
VALUES: 'attr'  --  File attributes
'data'  --  Raw file contents
'date'  --  File modification time
'name'  --  Filename
'size'  --  Original file size
'type'  --  File type
Depuis
1.0
Exceptions

Références Tar\$data, $file, $info, $mode, $position, elseif, et null.

Référencé par Tar\extract().

◆ isSupported()

static isSupported ( )
static

Tests whether this adapter can unpack files on this computer.

Renvoie
boolean True if supported
Depuis
1.0

Implémente ExtractableInterface.

Documentation des champs

◆ $data

$data
private

Référencé par Tar\getTarInfo().

◆ $metadata

$metadata
private

◆ $options

$options = array()
protected

Référencé par Tar\__construct().

◆ $types

$types
private
Valeur initiale :
= array(
0x0 => 'Unix file',
0x30 => 'File',
0x31 => 'Link',
0x32 => 'Symbolic link',
0x33 => 'Character special file',
0x34 => 'Block special file',
0x35 => 'Directory',
0x36 => 'FIFO special file',
0x37 => 'Contiguous file',
)

La documentation de cette classe a été générée à partir du fichier suivant :