You are here

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

* Get Hyperlink * *

Return value

PHPExcel_Cell_Hyperlink * @throws PHPExcel_Exception

File

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

Class

PHPExcel_Cell
PHPExcel_Cell

Code

public function getHyperlink() {
  if (!isset($this->_parent)) {
    throw new PHPExcel_Exception('Cannot get hyperlink for cell that is not bound to a worksheet');
  }
  return $this
    ->getWorksheet()
    ->getHyperlink($this
    ->getCoordinate());
}