WordPress at Your Fingertips
function is not described

PclZip::privCreate() public WP 1.0

Function : privCreate() Description : Parameters : Return Values :

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

No Hooks.

Return

null. Nothing.

Usage

$PclZip = new PclZip();
$PclZip->privCreate( $p_filedescr_list, $p_result_list, $p_options );
$p_filedescr_list (required)
-
$p_result_list (required) (passed by reference — &)
-
$p_options (required) (passed by reference — &)
-

Code of PclZip::privCreate() WP 5.8.2

function privCreate($p_filedescr_list, &$p_result_list, &$p_options)
{
  $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
    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
  return $v_result;
}