You are here

private static function PHPExcel_Reader_Excel2007::boolean in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php \PHPExcel_Reader_Excel2007::boolean()
3 calls to PHPExcel_Reader_Excel2007::boolean()
PHPExcel_Reader_Excel2007::load in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php
* Loads PHPExcel from file * *
PHPExcel_Reader_Excel2007::_parseRichText in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php
PHPExcel_Reader_Excel2007::_readStyle in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php, line 2073

Class

PHPExcel_Reader_Excel2007
PHPExcel_Reader_Excel2007

Code

private static function boolean($value = NULL) {
  if (is_object($value)) {
    $value = (string) $value;
  }
  if (is_numeric($value)) {
    return (bool) $value;
  }
  return $value === 'true' || $value === 'TRUE';
}