@@ 405-414 (lines=10) @@ | ||
402 | * |
|
403 | * @return Cell |
|
404 | */ |
|
405 | public function setDataValidation(DataValidation $pDataValidation = null) |
|
406 | { |
|
407 | if (!isset($this->parent)) { |
|
408 | throw new Exception('Cannot set data validation for cell that is not bound to a worksheet'); |
|
409 | } |
|
410 | ||
411 | $this->getWorksheet()->setDataValidation($this->getCoordinate(), $pDataValidation); |
|
412 | ||
413 | return $this->updateInCollection(); |
|
414 | } |
|
415 | ||
416 | /** |
|
417 | * Does this cell contain a Hyperlink? |
|
@@ 457-466 (lines=10) @@ | ||
454 | * |
|
455 | * @return Cell |
|
456 | */ |
|
457 | public function setHyperlink(Hyperlink $pHyperlink = null) |
|
458 | { |
|
459 | if (!isset($this->parent)) { |
|
460 | throw new Exception('Cannot set hyperlink for cell that is not bound to a worksheet'); |
|
461 | } |
|
462 | ||
463 | $this->getWorksheet()->setHyperlink($this->getCoordinate(), $pHyperlink); |
|
464 | ||
465 | return $this->updateInCollection(); |
|
466 | } |
|
467 | ||
468 | /** |
|
469 | * Get cell collection. |