You are here

function PclZip::privCreate in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php \PclZip::privCreate()
2 calls to PclZip::privCreate()
PclZip::create in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
PclZip::privAdd in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php, line 2124

Class

PclZip

Code

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;
}