/** * Set hyperlnk * * @param string $pCellCoordinate Cell coordinate to insert hyperlink * @param PHPExcel_Cell_Hyperlink $pHyperlink * @return PHPExcel_Worksheet */ public function setHyperlink($pCellCoordinate = 'A1', PHPExcel_Cell_Hyperlink $pHyperlink = null) { if ($pHyperlink === null) { unset($this->_hyperlinkCollection[$pCellCoordinate]); } else { $this->_hyperlinkCollection[$pCellCoordinate] = $pHyperlink; $pHyperlink->setParent($this->getCell($pCellCoordinate)); } return $this; }
/** * Set Hyperlink * * @param PHPExcel_Cell_Hyperlink $pHyperlink * @throws Exception */ public function setHyperlink(PHPExcel_Cell_Hyperlink $pHyperlink = null) { $this->_hyperlink = $pHyperlink; $this->_hyperlink->setParent($this); }