You are here

private static function PHPExcel_Writer_Excel5_Xf::_mapHidden in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php \PHPExcel_Writer_Excel5_Xf::_mapHidden()

* Map hidden * *

Parameters

string: * @return int

1 call to PHPExcel_Writer_Excel5_Xf::_mapHidden()
PHPExcel_Writer_Excel5_Xf::writeXf in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php
* Generate an Excel BIFF XF record (style or cell). * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php, line 538

Class

PHPExcel_Writer_Excel5_Xf
PHPExcel_Writer_Excel5_Xf

Code

private static function _mapHidden($hidden) {
  switch ($hidden) {
    case PHPExcel_Style_Protection::PROTECTION_INHERIT:
      return 0;
    case PHPExcel_Style_Protection::PROTECTION_PROTECTED:
      return 1;
    case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED:
      return 0;
    default:
      return 0;
  }
}