Added an isFormula() method to the cell object

This commit is contained in:
Mark Baker 2013-10-13 11:37:00 +01:00
parent bdd1f6fa31
commit ea18123aea
1 changed files with 10 additions and 0 deletions

View File

@ -370,6 +370,16 @@ class PHPExcel_Cell
return $this->notifyCacheController(); 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? * Does this cell contain Data validation rules?
* *