You are here

function PclZip::PclZip in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::PclZip()

File

includes/moodle/lib/pclzip/pclzip.lib.php, line 185

Class

PclZip

Code

function PclZip($p_zipname) {

  //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, 'PclZip::PclZip', "zipname=$p_zipname");

  // ----- Tests the zlib
  if (!function_exists('gzopen')) {

    //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 1, "zlib extension seems to be missing");
    die('Abort ' . basename(__FILE__) . ' : Missing zlib extensions');
  }

  // ----- Set the attributes
  $this->zipname = $p_zipname;
  $this->zip_fd = 0;
  $this->magic_quotes_status = -1;

  // ----- Return

  //--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, 1);
  return;
}