@@ 223-238 (lines=16) @@ | ||
220 | * |
|
221 | * @return Border |
|
222 | */ |
|
223 | public function setBorderStyle($pValue) |
|
224 | { |
|
225 | if (empty($pValue)) { |
|
226 | $pValue = self::BORDER_NONE; |
|
227 | } elseif (is_bool($pValue) && $pValue) { |
|
228 | $pValue = self::BORDER_MEDIUM; |
|
229 | } |
|
230 | if ($this->isSupervisor) { |
|
231 | $styleArray = $this->getStyleArray(['style' => $pValue]); |
|
232 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
233 | } else { |
|
234 | $this->borderStyle = $pValue; |
|
235 | } |
|
236 | ||
237 | return $this; |
|
238 | } |
|
239 | ||
240 | /** |
|
241 | * Get Border Color. |
@@ 459-474 (lines=16) @@ | ||
456 | * |
|
457 | * @return Font |
|
458 | */ |
|
459 | public function setUnderline($pValue) |
|
460 | { |
|
461 | if (is_bool($pValue)) { |
|
462 | $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE; |
|
463 | } elseif ($pValue == '') { |
|
464 | $pValue = self::UNDERLINE_NONE; |
|
465 | } |
|
466 | if ($this->isSupervisor) { |
|
467 | $styleArray = $this->getStyleArray(['underline' => $pValue]); |
|
468 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
469 | } else { |
|
470 | $this->underline = $pValue; |
|
471 | } |
|
472 | ||
473 | return $this; |
|
474 | } |
|
475 | ||
476 | /** |
|
477 | * Get Strikethrough. |