@@ 202-212 (lines=11) @@ | ||
199 | * @param string $pValue Fill type |
|
200 | * @return Fill |
|
201 | */ |
|
202 | public function setFillType($pValue = self::FILL_NONE) |
|
203 | { |
|
204 | if ($this->isSupervisor) { |
|
205 | $styleArray = $this->getStyleArray(['type' => $pValue]); |
|
206 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
207 | } else { |
|
208 | $this->fillType = $pValue; |
|
209 | } |
|
210 | ||
211 | return $this; |
|
212 | } |
|
213 | ||
214 | /** |
|
215 | * Get Rotation |
|
@@ 234-243 (lines=10) @@ | ||
231 | * @param float $pValue |
|
232 | * @return Fill |
|
233 | */ |
|
234 | public function setRotation($pValue = 0) |
|
235 | { |
|
236 | if ($this->isSupervisor) { |
|
237 | $styleArray = $this->getStyleArray(['rotation' => $pValue]); |
|
238 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
239 | } else { |
|
240 | $this->rotation = $pValue; |
|
241 | } |
|
242 | ||
243 | return $this; |
|
244 | } |
|
245 | ||
246 | /** |
@@ 148-157 (lines=10) @@ | ||
145 | * @param string $pValue |
|
146 | * @return Protection |
|
147 | */ |
|
148 | public function setLocked($pValue = self::PROTECTION_INHERIT) |
|
149 | { |
|
150 | if ($this->isSupervisor) { |
|
151 | $styleArray = $this->getStyleArray(['locked' => $pValue]); |
|
152 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
153 | } else { |
|
154 | $this->locked = $pValue; |
|
155 | } |
|
156 | ||
157 | return $this; |
|
158 | } |
|
159 | ||
160 | /** |
|
@@ 180-189 (lines=10) @@ | ||
177 | * @param string $pValue |
|
178 | * @return Protection |
|
179 | */ |
|
180 | public function setHidden($pValue = self::PROTECTION_INHERIT) |
|
181 | { |
|
182 | if ($this->isSupervisor) { |
|
183 | $styleArray = $this->getStyleArray(['hidden' => $pValue]); |
|
184 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
|
185 | } else { |
|
186 | $this->hidden = $pValue; |
|
187 | } |
|
188 | ||
189 | return $this; |
|
190 | } |
|
191 | ||
192 | /** |