You are here

public function PHPExcel_Cell::getDataValidation 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::getDataValidation()

* Get Data validation rules * *

Return value

PHPExcel_Cell_DataValidation * @throws PHPExcel_Exception

File

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

Class

PHPExcel_Cell
PHPExcel_Cell

Code

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