mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-04 22:50:27 +00:00
Added an isFormula() method to the cell object
This commit is contained in:
@@ -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?
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user