General: Magic __toString() method added to Cell object to return raw data value as a string

This commit is contained in:
Mark Baker 2012-08-01 21:41:00 +01:00
parent 0b60b61104
commit 7fae37247b
2 changed files with 12 additions and 0 deletions

View File

@ -935,5 +935,15 @@ class PHPExcel_Cell
return $this->_formulaAttributes;
}
/**
* Convert to string
*
* @return string
*/
public function __toString()
{
return (string) $this->getValue();
}
}

View File

@ -81,6 +81,8 @@ Fixed in develop branch:
- Feature: (MBaker) Modified ERF and ERFC Engineering functions to accept Excel 2010's modified acceptance of negative arguments
- General: (alexgann) Add Currency detection to the Advanced Value Binder
- General: (MBaker) Work item 18404 - setCellValueExplicitByColumnAndRow() do not return PHPExcel_Worksheet
- General: (MBaker) Work item 18324 - Reader factory doesn't read anymore XLTX and XLT files
- General: (MBaker) Magic __toString() method added to Cell object to return raw data value as a string
- Bugfix: (cyberconte) Patch 12318 - OOCalc cells containing <text:span> inside the <text:p> tag
- Bugfix: (schir1964) Fix to listWorksheetInfo() method for OOCalc Reader
- Bugfix: (MBaker) Support for "e" (epoch) date format mask