Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
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:

Public Member Functions

 __construct ($pathname, array $onlyfiles=null)
 Constructor.
 
 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: