/** * 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']); } } }
/** * 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; } }