116 $this->_isSupervisor = $isSupervisor;
124 $this->_startColor->bindParent($this,
'_startColor');
125 $this->_endColor->bindParent($this,
'_endColor');
137 $this->_parent = $parent;
159 return $this->_parent->getSharedComponent()->getFill();
169 return $this->_parent->getActiveSheet();
202 return array(
'fill' => $array);
228 if (is_array($pStyles)) {
229 if ($this->_isSupervisor) {
232 if (array_key_exists(
'type', $pStyles)) {
235 if (array_key_exists(
'rotation', $pStyles)) {
238 if (array_key_exists(
'startcolor', $pStyles)) {
239 $this->
getStartColor()->applyFromArray($pStyles[
'startcolor']);
241 if (array_key_exists(
'endcolor', $pStyles)) {
242 $this->
getEndColor()->applyFromArray($pStyles[
'endcolor']);
244 if (array_key_exists(
'color', $pStyles)) {
249 throw new Exception(
"Invalid style array passed.");
260 if ($this->_isSupervisor) {
273 if ($this->_isSupervisor) {
274 $styleArray = $this->
getStyleArray(array(
'type' => $pValue));
277 $this->_fillType = $pValue;
288 if ($this->_isSupervisor) {
301 if ($this->_isSupervisor) {
302 $styleArray = $this->
getStyleArray(array(
'rotation' => $pValue));
305 $this->_rotation = $pValue;
328 $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
330 if ($this->_isSupervisor) {
331 $styleArray = $this->
getStartColor()->getStyleArray(array(
'argb' => $color->getARGB()));
334 $this->_startColor = $color;
357 $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
359 if ($this->_isSupervisor) {
360 $styleArray = $this->
getEndColor()->getStyleArray(array(
'argb' => $color->getARGB()));
363 $this->_endColor = $color;
374 if ($this->_isSupervisor) {
390 $vars = get_object_vars($this);
391 foreach ($vars as $key => $value) {
392 if ((is_object($value)) && ($key !=
'_parent')) {
393 $this->$key = clone $value;
395 $this->$key = $value;