From ea18123aea60456f280b442cf099ca329121fa9a Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sun, 13 Oct 2013 11:37:00 +0100 Subject: [PATCH] Added an isFormula() method to the cell object --- Classes/PHPExcel/Cell.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/PHPExcel/Cell.php b/Classes/PHPExcel/Cell.php index 2cafff3e..73495d58 100644 --- a/Classes/PHPExcel/Cell.php +++ b/Classes/PHPExcel/Cell.php @@ -370,6 +370,16 @@ class PHPExcel_Cell return $this->notifyCacheController(); } + /** + * Identify if the cell contains a formula + * + * @return boolean + */ + public function isFormula() + { + return $this->_dataType == PHPExcel_Cell_DataType::TYPE_FORMULA + } + /** * Does this cell contain Data validation rules? *