You are here

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

* Set Hyperlink * *

Parameters

PHPExcel_Cell_Hyperlink $pHyperlink: * @return PHPExcel_Cell * @throws PHPExcel_Exception

File

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

Class

PHPExcel_Cell
PHPExcel_Cell

Code

public function setHyperlink(PHPExcel_Cell_Hyperlink $pHyperlink = NULL) {
  if (!isset($this->_parent)) {
    throw new PHPExcel_Exception('Cannot set hyperlink for cell that is not bound to a worksheet');
  }
  $this
    ->getWorksheet()
    ->setHyperlink($this
    ->getCoordinate(), $pHyperlink);
  return $this
    ->notifyCacheController();
}