public function PHPExcel_Worksheet::setHyperlink in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.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
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;
}