@@ 189-204 (lines=16) @@ | ||
186 | * |
|
187 | * @return Border |
|
188 | */ |
|
189 | public function setBorderStyle($pValue) |
|
190 | { |
|
191 | if (empty($pValue)) { |
|
192 | $pValue = self::BORDER_NONE; |
|
193 | } elseif (is_bool($pValue) && $pValue) { |
|
194 | $pValue = self::BORDER_MEDIUM; |
|
195 | } |
|
196 | if ($this->isSupervisor) { |
|
197 | $styleArray = $this->getStyleArray(['borderStyle' => $pValue]); |
|
198 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
199 | } else { |
|
200 | $this->borderStyle = $pValue; |
|
201 | } |
|
202 | ||
203 | return $this; |
|
204 | } |
|
205 | ||
206 | /** |
|
207 | * Get Border Color. |
@@ 439-454 (lines=16) @@ | ||
436 | * |
|
437 | * @return Font |
|
438 | */ |
|
439 | public function setUnderline($pValue) |
|
440 | { |
|
441 | if (is_bool($pValue)) { |
|
442 | $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE; |
|
443 | } elseif ($pValue == '') { |
|
444 | $pValue = self::UNDERLINE_NONE; |
|
445 | } |
|
446 | if ($this->isSupervisor) { |
|
447 | $styleArray = $this->getStyleArray(['underline' => $pValue]); |
|
448 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
449 | } else { |
|
450 | $this->underline = $pValue; |
|
451 | } |
|
452 | ||
453 | return $this; |
|
454 | } |
|
455 | ||
456 | /** |
|
457 | * Get Strikethrough. |