Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
tgz_packer_extract_to_storage Class Reference

Handles extraction to file storage. More...

Inheritance diagram for tgz_packer_extract_to_storage:

Public Member Functions

 __construct ($contextid, $component, $filearea, $itemid, $pathbase, $userid)
 Constructor.
 
 tgz_directory ($archivepath, $mtime)
 
 tgz_end_file ($archivepath, $realpath)
 
 tgz_start_file ($archivepath)
 

Protected Attributes

string $component
 Component name for files.
 
int $contextid
 Context id for files.
 
string $filearea
 File area for files.
 
int $itemid
 Item ID for files.
 
string $pathbase
 Base path for files (subfolders will go inside this).
 
string $tempfile
 Path to temp file.
 
int $userid
 User id for files or null if none.
 

Detailed Description

Handles extraction to file storage.

Constructor & Destructor Documentation

◆ __construct()

tgz_packer_extract_to_storage::__construct ( $contextid,
$component,
$filearea,
$itemid,
$pathbase,
$userid )

Constructor.

Parameters
int$contextidContext id for files.
string$componentComponent name for files.
string$fileareaFile area for files.
int$itemidItem ID for files.
string$pathbaseBase path for files (subfolders will go inside this).
int$useridUser id for files or null if none.

Member Function Documentation

◆ tgz_directory()

tgz_packer_extract_to_storage::tgz_directory ( $archivepath,
$mtime )

◆ tgz_end_file()

tgz_packer_extract_to_storage::tgz_end_file ( $archivepath,
$realpath )

◆ tgz_start_file()

tgz_packer_extract_to_storage::tgz_start_file ( $archivepath)

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