function PclZip::privCreate in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::privCreate()
2 calls to PclZip::privCreate()
- PclZip::create in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privAdd in includes/
moodle/ lib/ pclzip/ pclzip.lib.php
File
- includes/
moodle/ lib/ pclzip/ pclzip.lib.php, line 2065
Class
Code
function privCreate($p_filedescr_list, &$p_result_list, &$p_options) {
//--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::privCreate", "list");
$v_result = 1;
$v_list_detail = array();
// ----- Magic quotes trick
$this
->privDisableMagicQuotes();
// ----- Open the file in write mode
if (($v_result = $this
->privOpenFd('wb')) != 1) {
// ----- Return
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
return $v_result;
}
// ----- Add the list of files
$v_result = $this
->privAddList($p_filedescr_list, $p_result_list, $p_options);
// ----- Close
$this
->privCloseFd();
// ----- Magic quotes trick
$this
->privSwapBackMagicQuotes();
// ----- Return
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
return $v_result;
}