public function PHPExcel_Worksheet::getHyperlink in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php \PHPExcel_Worksheet::getHyperlink()
Get hyperlink
Parameters
string $pCellCoordinate Cell coordinate to get hyperlink for:
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php, line 2674
Class
- PHPExcel_Worksheet
- PHPExcel_Worksheet
Code
public function getHyperlink($pCellCoordinate = 'A1') {
// return hyperlink if we already have one
if (isset($this->_hyperlinkCollection[$pCellCoordinate])) {
return $this->_hyperlinkCollection[$pCellCoordinate];
}
// else create hyperlink
$this->_hyperlinkCollection[$pCellCoordinate] = new PHPExcel_Cell_Hyperlink();
return $this->_hyperlinkCollection[$pCellCoordinate];
}