Ejemplo n.º 1
0
 /**
  * Parse and set the given CSS styles
  *
  * @param array $styles
  */
 public function setStyles(array $styles)
 {
     foreach ($styles as $style) {
         if (isset($style['type']) && isset($style['css'])) {
             $this->_styles[$style['type']] = iPhorm::parseCss($style['css']);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Set the group background colour
  *
  * @param string $colour The CSS hex colour
  */
 public function setBackgroundColour($colour)
 {
     if ($colour) {
         $this->_backgroundColour = iPhorm::parseCss('background-color: ' . $colour . ';');
     } else {
         $this->_backgroundColour = null;
     }
 }