@@ 461-476 (lines=16) @@ | ||
458 | * |
|
459 | * @return Font |
|
460 | */ |
|
461 | public function setUnderline($pValue) |
|
462 | { |
|
463 | if (is_bool($pValue)) { |
|
464 | $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE; |
|
465 | } elseif ($pValue == '') { |
|
466 | $pValue = self::UNDERLINE_NONE; |
|
467 | } |
|
468 | if ($this->isSupervisor) { |
|
469 | $styleArray = $this->getStyleArray(['underline' => $pValue]); |
|
470 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
471 | } else { |
|
472 | $this->underline = $pValue; |
|
473 | } |
|
474 | ||
475 | return $this; |
|
476 | } |
|
477 | ||
478 | /** |
|
479 | * Get Strikethrough. |
@@ 211-226 (lines=16) @@ | ||
208 | * |
|
209 | * @return Border |
|
210 | */ |
|
211 | public function setBorderStyle($pValue) |
|
212 | { |
|
213 | if (empty($pValue)) { |
|
214 | $pValue = self::BORDER_NONE; |
|
215 | } elseif (is_bool($pValue) && $pValue) { |
|
216 | $pValue = self::BORDER_MEDIUM; |
|
217 | } |
|
218 | if ($this->isSupervisor) { |
|
219 | $styleArray = $this->getStyleArray(['borderStyle' => $pValue]); |
|
220 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
221 | } else { |
|
222 | $this->borderStyle = $pValue; |
|
223 | } |
|
224 | ||
225 | return $this; |
|
226 | } |
|
227 | ||
228 | /** |
|
229 | * Get Border Color. |