|
@@ 2584-2594 (lines=11) @@
|
| 2581 |
|
* |
| 2582 |
|
* @param string $pCellCoordinate Cell coordinate to get hyperlink for |
| 2583 |
|
*/ |
| 2584 |
|
public function getHyperlink($pCellCoordinate = 'A1') |
| 2585 |
|
{ |
| 2586 |
|
// return hyperlink if we already have one |
| 2587 |
|
if (isset($this->_hyperlinkCollection[$pCellCoordinate])) { |
| 2588 |
|
return $this->_hyperlinkCollection[$pCellCoordinate]; |
| 2589 |
|
} |
| 2590 |
|
|
| 2591 |
|
// else create hyperlink |
| 2592 |
|
$this->_hyperlinkCollection[$pCellCoordinate] = new PHPExcel_Cell_Hyperlink(); |
| 2593 |
|
return $this->_hyperlinkCollection[$pCellCoordinate]; |
| 2594 |
|
} |
| 2595 |
|
|
| 2596 |
|
/** |
| 2597 |
|
* Set hyperlnk |
|
@@ 2639-2649 (lines=11) @@
|
| 2636 |
|
* |
| 2637 |
|
* @param string $pCellCoordinate Cell coordinate to get data validation for |
| 2638 |
|
*/ |
| 2639 |
|
public function getDataValidation($pCellCoordinate = 'A1') |
| 2640 |
|
{ |
| 2641 |
|
// return data validation if we already have one |
| 2642 |
|
if (isset($this->_dataValidationCollection[$pCellCoordinate])) { |
| 2643 |
|
return $this->_dataValidationCollection[$pCellCoordinate]; |
| 2644 |
|
} |
| 2645 |
|
|
| 2646 |
|
// else create data validation |
| 2647 |
|
$this->_dataValidationCollection[$pCellCoordinate] = new PHPExcel_Cell_DataValidation(); |
| 2648 |
|
return $this->_dataValidationCollection[$pCellCoordinate]; |
| 2649 |
|
} |
| 2650 |
|
|
| 2651 |
|
/** |
| 2652 |
|
* Set data validation |