Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tgz_packer_extract_to_storage Class Reference

Handles extraction to file storage. More...

Inheritance diagram for tgz_packer_extract_to_storage:
tgz_extractor_handler

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: