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 JArchiveTar
+ Graphe d'héritage de JArchiveTar:

Fonctions membres publiques

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

Fonctions membres publiques statiques

static isSupported ()
 

Fonctions membres protégées

 _getTarInfo (& $data)
 

Attributs privés

 $_types
 
 $_data = null
 
 $_metadata = null
 

Description détaillée

Tar format adapter for the JArchive class

This class is inspired from and draws heavily in code and concept from the Compress package of The Horde Project https://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.5
Obsolète:
4.0 use the Joomla class instead

Documentation des fonctions membres

◆ _getTarInfo()

_getTarInfo ( $data)
protected

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

Paramètres
string&$dataThe Tar archive buffer.
Renvoie
boolean|JException True on success, JException instance on failure if JError class exists
Depuis
1.5
Exceptions
RuntimeExceptionif JError class does not exist

This variable has been set in the previous loop, meaning that the filename was present in the previous block to allow more than 100 characters - see below

Références $data, $file, $info, $mode, $position, elseif, null, et JError\raiseWarning().

◆ extract()

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

Extract a ZIP compressed file to a given path

Paramètres
string$archivePath to ZIP archive to extract
string$destinationPath to extract archive into
array$optionsExtraction options [unused]
Renvoie
boolean|JException True on success, JException instance on failure if JError class exists
Depuis
1.5
Exceptions
RuntimeExceptionif JError class does not exist

Implémente JArchiveExtractable.

Références $buffer, $i, $n, $path, $type, null, et JError\raiseWarning().

◆ isSupported()

static isSupported ( )
static

Tests whether this adapter can unpack files on this computer.

Renvoie
boolean True if supported
Depuis
2.5.0

Implémente JArchiveExtractable.

Documentation des champs

◆ $_data

$_data = null
private

◆ $_metadata

$_metadata = null
private

◆ $_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 :