function PclZip::listContent in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::listContent()
File
- includes/
moodle/ lib/ pclzip/ pclzip.lib.php, line 621
Class
Code
function listContent() {
//--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, 'PclZip::listContent', "");
$v_result = 1;
// ----- Reset the error handler
$this
->privErrorReset();
// ----- Check archive
if (!$this
->privCheckFormat()) {
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, 0);
return 0;
}
// ----- Call the extracting fct
$p_list = array();
if (($v_result = $this
->privList($p_list)) != 1) {
unset($p_list);
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, 0, PclZip::errorInfo());
return 0;
}
// ----- Return
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $p_list);
return $p_list;
}