function PclZip::privConvertHeader2FileInfo in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::privConvertHeader2FileInfo()
7 calls to PclZip::privConvertHeader2FileInfo()
- PclZip::privAdd in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privAddFile in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privAddList in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privExtractByRule in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privExtractFile in includes/
moodle/ lib/ pclzip/ pclzip.lib.php
File
- includes/
moodle/ lib/ pclzip/ pclzip.lib.php, line 3076
Class
Code
function privConvertHeader2FileInfo($p_header, &$p_info) {
//--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::privConvertHeader2FileInfo", "Filename='".$p_header['filename']."'");
$v_result = 1;
// ----- Get the interesting attributes
$p_info['filename'] = $p_header['filename'];
$p_info['stored_filename'] = $p_header['stored_filename'];
$p_info['size'] = $p_header['size'];
$p_info['compressed_size'] = $p_header['compressed_size'];
$p_info['mtime'] = $p_header['mtime'];
$p_info['comment'] = $p_header['comment'];
$p_info['folder'] = ($p_header['external'] & 0x10) == 0x10;
$p_info['index'] = $p_header['index'];
$p_info['status'] = $p_header['status'];
// ----- Return
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
return $v_result;
}