Exemplo n.º 1
0
 /**
  * Build style array from subcomponents
  *
  * @param array $array
  * @return array
  */
 public function getStyleArray($array)
 {
     switch ($this->_parentPropertyName) {
         case '_allBorders':
             $key = 'allborders';
             break;
         case '_bottom':
             $key = 'bottom';
             break;
         case '_diagonal':
             $key = 'diagonal';
             break;
         case '_horizontal':
             $key = 'horizontal';
             break;
         case '_inside':
             $key = 'inside';
             break;
         case '_left':
             $key = 'left';
             break;
         case '_outline':
             $key = 'outline';
             break;
         case '_right':
             $key = 'right';
             break;
         case '_top':
             $key = 'top';
             break;
         case '_vertical':
             $key = 'vertical';
             break;
     }
     return $this->_parent->getStyleArray(array($key => $array));
 }