You are here

public function PHPExcel_Worksheet::getDataValidation in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php \PHPExcel_Worksheet::getDataValidation()

Get data validation

Parameters

string $pCellCoordinate Cell coordinate to get data validation for:

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php, line 2729

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function getDataValidation($pCellCoordinate = 'A1') {

  // return data validation if we already have one
  if (isset($this->_dataValidationCollection[$pCellCoordinate])) {
    return $this->_dataValidationCollection[$pCellCoordinate];
  }

  // else create data validation
  $this->_dataValidationCollection[$pCellCoordinate] = new PHPExcel_Cell_DataValidation();
  return $this->_dataValidationCollection[$pCellCoordinate];
}