You are here

public function PHPExcel_Cell::hasDataValidation in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php \PHPExcel_Cell::hasDataValidation()

* Does this cell contain Data validation rules? * *

Return value

boolean * @throws PHPExcel_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php, line 384

Class

PHPExcel_Cell
PHPExcel_Cell

Code

public function hasDataValidation() {
  if (!isset($this->_parent)) {
    throw new PHPExcel_Exception('Cannot check for data validation when cell is not bound to a worksheet');
  }
  return $this
    ->getWorksheet()
    ->dataValidationExists($this
    ->getCoordinate());
}