You are here

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

* Set cell data type * *

Parameters

string $pDataType: * @return PHPExcel_Cell

File

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

Class

PHPExcel_Cell
PHPExcel_Cell

Code

public function setDataType($pDataType = PHPExcel_Cell_DataType::TYPE_STRING) {
  if ($pDataType == PHPExcel_Cell_DataType::TYPE_STRING2) {
    $pDataType = PHPExcel_Cell_DataType::TYPE_STRING;
  }
  $this->_dataType = $pDataType;
  return $this
    ->notifyCacheController();
}