Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
tgz_packer_extract_to_pathname Class Reference

Handles extraction to pathname. More...

Inheritance diagram for tgz_packer_extract_to_pathname:
tgz_extractor_handler

Public Member Functions

 __construct ($pathname, array $onlyfiles=null)
 Constructor. More...
 
 tgz_directory ($archivepath, $mtime)
 
 tgz_end_file ($archivepath, $realpath)
 
 tgz_start_file ($archivepath)
 

Protected Attributes

array $onlyfiles
 Array of files to extract (other files are skipped).
 
string $pathname
 Target directory for extract.
 

Detailed Description

Handles extraction to pathname.

Constructor & Destructor Documentation

◆ __construct()

tgz_packer_extract_to_pathname::__construct (   $pathname,
array  $onlyfiles = null 
)

Constructor.

Parameters
string$pathnametarget directory
array$onlyfilesonly extract files present in the array

Member Function Documentation

◆ tgz_directory()

tgz_packer_extract_to_pathname::tgz_directory (   $archivepath,
  $mtime 
)

◆ tgz_end_file()

tgz_packer_extract_to_pathname::tgz_end_file (   $archivepath,
  $realpath 
)

◆ tgz_start_file()

tgz_packer_extract_to_pathname::tgz_start_file (   $archivepath)

The documentation for this class was generated from the following file: