@@ 172-185 (lines=14) @@ | ||
169 | * |
|
170 | * @return Color |
|
171 | */ |
|
172 | public function setRGB($pValue) |
|
173 | { |
|
174 | if ($pValue == '') { |
|
175 | $pValue = '000000'; |
|
176 | } |
|
177 | if ($this->isSupervisor) { |
|
178 | $styleArray = $this->getStyleArray(['argb' => 'FF' . $pValue]); |
|
179 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
180 | } else { |
|
181 | $this->argb = 'FF' . $pValue; |
|
182 | } |
|
183 | ||
184 | return $this; |
|
185 | } |
|
186 | ||
187 | /** |
|
188 | * Get a specified colour component of an RGB value. |
@@ 223-236 (lines=14) @@ | ||
220 | * |
|
221 | * @return Font |
|
222 | */ |
|
223 | public function setName($pValue) |
|
224 | { |
|
225 | if ($pValue == '') { |
|
226 | $pValue = 'Calibri'; |
|
227 | } |
|
228 | if ($this->isSupervisor) { |
|
229 | $styleArray = $this->getStyleArray(['name' => $pValue]); |
|
230 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
231 | } else { |
|
232 | $this->name = $pValue; |
|
233 | } |
|
234 | ||
235 | return $this; |
|
236 | } |
|
237 | ||
238 | /** |
|
239 | * Get Size. |
|
@@ 259-272 (lines=14) @@ | ||
256 | * |
|
257 | * @return Font |
|
258 | */ |
|
259 | public function setSize($pValue) |
|
260 | { |
|
261 | if ($pValue == '') { |
|
262 | $pValue = 10; |
|
263 | } |
|
264 | if ($this->isSupervisor) { |
|
265 | $styleArray = $this->getStyleArray(['size' => $pValue]); |
|
266 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
267 | } else { |
|
268 | $this->size = $pValue; |
|
269 | } |
|
270 | ||
271 | return $this; |
|
272 | } |
|
273 | ||
274 | /** |
|
275 | * Get Bold. |