@@ 228-241 (lines=14) @@ | ||
225 | * |
|
226 | * @return Color |
|
227 | */ |
|
228 | public function setRGB($pValue) |
|
229 | { |
|
230 | if ($pValue == '') { |
|
231 | $pValue = '000000'; |
|
232 | } |
|
233 | if ($this->isSupervisor) { |
|
234 | $styleArray = $this->getStyleArray(['argb' => 'FF' . $pValue]); |
|
235 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
236 | } else { |
|
237 | $this->argb = 'FF' . $pValue; |
|
238 | } |
|
239 | ||
240 | return $this; |
|
241 | } |
|
242 | ||
243 | /** |
|
244 | * Get a specified colour component of an RGB value. |
@@ 239-252 (lines=14) @@ | ||
236 | * |
|
237 | * @return Font |
|
238 | */ |
|
239 | public function setName($pValue) |
|
240 | { |
|
241 | if ($pValue == '') { |
|
242 | $pValue = 'Calibri'; |
|
243 | } |
|
244 | if ($this->isSupervisor) { |
|
245 | $styleArray = $this->getStyleArray(['name' => $pValue]); |
|
246 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
247 | } else { |
|
248 | $this->name = $pValue; |
|
249 | } |
|
250 | ||
251 | return $this; |
|
252 | } |
|
253 | ||
254 | /** |
|
255 | * Get Size. |
|
@@ 275-288 (lines=14) @@ | ||
272 | * |
|
273 | * @return Font |
|
274 | */ |
|
275 | public function setSize($pValue) |
|
276 | { |
|
277 | if ($pValue == '') { |
|
278 | $pValue = 10; |
|
279 | } |
|
280 | if ($this->isSupervisor) { |
|
281 | $styleArray = $this->getStyleArray(['size' => $pValue]); |
|
282 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
283 | } else { |
|
284 | $this->size = $pValue; |
|
285 | } |
|
286 | ||
287 | return $this; |
|
288 | } |
|
289 | ||
290 | /** |
|
291 | * Get Bold. |