You are here

public function PHPExcel_Worksheet::setHyperlink 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::setHyperlink()

Set hyperlnk

Parameters

string $pCellCoordinate Cell coordinate to insert hyperlink:

PHPExcel_Cell_Hyperlink $pHyperlink:

Return value

PHPExcel_Worksheet

File

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

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function setHyperlink($pCellCoordinate = 'A1', PHPExcel_Cell_Hyperlink $pHyperlink = null) {
  if ($pHyperlink === null) {
    unset($this->_hyperlinkCollection[$pCellCoordinate]);
  }
  else {
    $this->_hyperlinkCollection[$pCellCoordinate] = $pHyperlink;
  }
  return $this;
}