You are here

function PclZip::listContent in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php \PclZip::listContent()

File

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

Class

PclZip

Code

function listContent() {
  $v_result = 1;

  // ----- Reset the error handler
  $this
    ->privErrorReset();

  // ----- Check archive
  if (!$this
    ->privCheckFormat()) {
    return 0;
  }

  // ----- Call the extracting fct
  $p_list = array();
  if (($v_result = $this
    ->privList($p_list)) != 1) {
    unset($p_list);
    return 0;
  }

  // ----- Return
  return $p_list;
}