Merge branch 'psr2' into develop
This commit is contained in:
commit
5bb69032b8
|
@ -674,10 +674,10 @@ class PHPExcel_Calculation_LookupRef
|
||||||
{
|
{
|
||||||
reset($a);
|
reset($a);
|
||||||
$firstColumn = key($a);
|
$firstColumn = key($a);
|
||||||
if (strtolower($a[$firstColumn]) == strtolower($b[$firstColumn])) {
|
if (($aLower = strtolower($a[$firstColumn])) == ($bLower = strtolower($b[$firstColumn]))) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return (strtolower($a[$firstColumn]) < strtolower($b[$firstColumn])) ? -1 : 1;
|
return ($aLower < $bLower) ? -1 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -694,7 +694,7 @@ class PHPExcel_Calculation_LookupRef
|
||||||
{
|
{
|
||||||
$lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
|
$lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
|
||||||
$index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number);
|
$index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number);
|
||||||
$not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match);
|
$not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match);
|
||||||
|
|
||||||
// index_number must be greater than or equal to 1
|
// index_number must be greater than or equal to 1
|
||||||
if ($index_number < 1) {
|
if ($index_number < 1) {
|
||||||
|
|
|
@ -848,8 +848,12 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "inlineStr":
|
case "inlineStr":
|
||||||
// echo 'Inline String', PHP_EOL;
|
// echo 'Inline String', PHP_EOL;
|
||||||
$value = $this->parseRichText($c->is);
|
if (isset($c->f)) {
|
||||||
|
$this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
|
||||||
|
} else {
|
||||||
|
$value = $this->parseRichText($c->is);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "e":
|
case "e":
|
||||||
// echo 'Error', PHP_EOL;
|
// echo 'Error', PHP_EOL;
|
||||||
|
@ -862,7 +866,7 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// echo 'Default', PHP_EOL;
|
// echo 'Default', PHP_EOL;
|
||||||
if (!isset($c->f)) {
|
if (!isset($c->f)) {
|
||||||
// echo 'Not a Formula', PHP_EOL;
|
// echo 'Not a Formula', PHP_EOL;
|
||||||
$value = self::castToString($c);
|
$value = self::castToString($c);
|
||||||
|
|
|
@ -106,11 +106,11 @@ class PHPExcel_Shared_Date
|
||||||
/**
|
/**
|
||||||
* Convert a date from Excel to PHP
|
* Convert a date from Excel to PHP
|
||||||
*
|
*
|
||||||
* @param long $dateValue Excel date/time value
|
* @param integer $dateValue Excel date/time value
|
||||||
* @param boolean $adjustToTimezone Flag indicating whether $dateValue should be treated as
|
* @param boolean $adjustToTimezone Flag indicating whether $dateValue should be treated as
|
||||||
* a UST timestamp, or adjusted to UST
|
* a UST timestamp, or adjusted to UST
|
||||||
* @param string $timezone The timezone for finding the adjustment from UST
|
* @param string $timezone The timezone for finding the adjustment from UST
|
||||||
* @return long PHP serialized date/time
|
* @return integer PHP serialized date/time
|
||||||
*/
|
*/
|
||||||
public static function ExcelToPHP($dateValue = 0, $adjustToTimezone = false, $timezone = null)
|
public static function ExcelToPHP($dateValue = 0, $adjustToTimezone = false, $timezone = null)
|
||||||
{
|
{
|
||||||
|
@ -197,13 +197,13 @@ class PHPExcel_Shared_Date
|
||||||
/**
|
/**
|
||||||
* FormattedPHPToExcel
|
* FormattedPHPToExcel
|
||||||
*
|
*
|
||||||
* @param long $year
|
* @param integer $year
|
||||||
* @param long $month
|
* @param integer $month
|
||||||
* @param long $day
|
* @param integer $day
|
||||||
* @param long $hours
|
* @param integer $hours
|
||||||
* @param long $minutes
|
* @param integer $minutes
|
||||||
* @param long $seconds
|
* @param integer $seconds
|
||||||
* @return long Excel date/time value
|
* @return integer Excel date/time value
|
||||||
*/
|
*/
|
||||||
public static function FormattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0)
|
public static function FormattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
Planned for 1.8.2
|
Planned for 1.8.2
|
||||||
- Bugfix: (MBaker) - Fix to getCell() method when cell reference includes a worksheet reference
|
- Bugfix: (MBaker) - Fix to getCell() method when cell reference includes a worksheet reference
|
||||||
|
- Bugfix: (ncrypthic) Work Item GH-570 - Ignore inlineStr type if formula element exists
|
||||||
|
- General: (umpirsky) Work Item GH-548 - Optimize vlookup() sort
|
||||||
|
|
||||||
|
|
||||||
2015-04-30 (v1.8.1):
|
2015-04-30 (v1.8.1):
|
||||||
|
|
Loading…
Reference in New Issue