You are here

public function PHPExcel_Worksheet::setCellValue in Loft Data Grids 7.2

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

Set a cell value

Parameters

string $pCoordinate Coordinate of the cell:

mixed $pValue Value of the cell:

bool $returnCell Return the worksheet (false, default) or the cell (true):

Return value

PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified

File

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

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function setCellValue($pCoordinate = 'A1', $pValue = null, $returnCell = false) {
  $cell = $this
    ->getCell(strtoupper($pCoordinate))
    ->setValue($pValue);
  return $returnCell ? $cell : $this;
}