WordPress at Your Fingertips
function is not described

PclZip::__construct() public WP 1.0

Function : PclZip() Description : Creates a PclZip object and set the name of the associated Zip archive filename. Note that no real action is taken, if the archive does not exist it is not created. Use create() for that.

{} It's a method of the class: PclZip{}

No Hooks.

Return

null. Nothing.

Usage

$PclZip = new PclZip();
$PclZip->__construct( $p_zipname );
$p_zipname (required)
-

Code of PclZip::__construct() WP 5.8.2

function __construct($p_zipname)
{

  // ----- Tests the zlib
  if (!function_exists('gzopen'))
  {
    die('Abort '.basename(__FILE__).' : Missing zlib extensions');
  }

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

  // ----- Return
  return;
}