@@ 170-185 (lines=16) @@ | ||
167 | * |
|
168 | * @return Border |
|
169 | */ |
|
170 | public function setBorderStyle($pValue) |
|
171 | { |
|
172 | if (empty($pValue)) { |
|
173 | $pValue = self::BORDER_NONE; |
|
174 | } elseif (is_bool($pValue) && $pValue) { |
|
175 | $pValue = self::BORDER_MEDIUM; |
|
176 | } |
|
177 | if ($this->isSupervisor) { |
|
178 | $styleArray = $this->getStyleArray(['borderStyle' => $pValue]); |
|
179 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
180 | } else { |
|
181 | $this->borderStyle = $pValue; |
|
182 | } |
|
183 | ||
184 | return $this; |
|
185 | } |
|
186 | ||
187 | /** |
|
188 | * Get Border Color. |
@@ 443-458 (lines=16) @@ | ||
440 | * |
|
441 | * @return Font |
|
442 | */ |
|
443 | public function setUnderline($pValue) |
|
444 | { |
|
445 | if (is_bool($pValue)) { |
|
446 | $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE; |
|
447 | } elseif ($pValue == '') { |
|
448 | $pValue = self::UNDERLINE_NONE; |
|
449 | } |
|
450 | if ($this->isSupervisor) { |
|
451 | $styleArray = $this->getStyleArray(['underline' => $pValue]); |
|
452 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
453 | } else { |
|
454 | $this->underline = $pValue; |
|
455 | } |
|
456 | ||
457 | return $this; |
|
458 | } |
|
459 | ||
460 | /** |
|
461 | * Get Strikethrough. |