You are here

function PclZipUtilOptionText 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 \PclZipUtilOptionText()
2 calls to PclZipUtilOptionText()
PclZip::privFileDescrParseAtt in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
PclZip::privParseOptions in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php

File

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

Code

function PclZipUtilOptionText($p_option) {
  $v_list = get_defined_constants();
  for (reset($v_list); $v_key = key($v_list); next($v_list)) {
    $v_prefix = substr($v_key, 0, 10);
    if (($v_prefix == 'PCLZIP_OPT' || $v_prefix == 'PCLZIP_CB_' || $v_prefix == 'PCLZIP_ATT') && $v_list[$v_key] == $p_option) {
      return $v_key;
    }
  }
  $v_result = 'Unknown';
  return $v_result;
}