@@ 196-209 (lines=14) @@ | ||
193 | * |
|
194 | * @return Color |
|
195 | */ |
|
196 | public function setRGB($pValue) |
|
197 | { |
|
198 | if ($pValue == '') { |
|
199 | $pValue = '000000'; |
|
200 | } |
|
201 | if ($this->isSupervisor) { |
|
202 | $styleArray = $this->getStyleArray(['argb' => 'FF' . $pValue]); |
|
203 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
204 | } else { |
|
205 | $this->argb = 'FF' . $pValue; |
|
206 | } |
|
207 | ||
208 | return $this; |
|
209 | } |
|
210 | ||
211 | /** |
|
212 | * Get a specified colour component of an RGB value. |
@@ 219-232 (lines=14) @@ | ||
216 | * |
|
217 | * @return Font |
|
218 | */ |
|
219 | public function setName($pValue) |
|
220 | { |
|
221 | if ($pValue == '') { |
|
222 | $pValue = 'Calibri'; |
|
223 | } |
|
224 | if ($this->isSupervisor) { |
|
225 | $styleArray = $this->getStyleArray(['name' => $pValue]); |
|
226 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
227 | } else { |
|
228 | $this->name = $pValue; |
|
229 | } |
|
230 | ||
231 | return $this; |
|
232 | } |
|
233 | ||
234 | /** |
|
235 | * Get Size. |
|
@@ 255-268 (lines=14) @@ | ||
252 | * |
|
253 | * @return Font |
|
254 | */ |
|
255 | public function setSize($pValue) |
|
256 | { |
|
257 | if ($pValue == '') { |
|
258 | $pValue = 10; |
|
259 | } |
|
260 | if ($this->isSupervisor) { |
|
261 | $styleArray = $this->getStyleArray(['size' => $pValue]); |
|
262 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
263 | } else { |
|
264 | $this->size = $pValue; |
|
265 | } |
|
266 | ||
267 | return $this; |
|
268 | } |
|
269 | ||
270 | /** |
|
271 | * Get Bold. |