You are here

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

* Does this cell contain a Hyperlink? * *

Return value

boolean * @throws PHPExcel_Exception

File

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

Class

PHPExcel_Cell
PHPExcel_Cell

Code

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