style = $style; } /** * Takes array where of CSS properties / values and converts to CSS string * * @param array $css * @return string */ protected function assembleCss($css) { $pairs = array(); $string = ''; foreach ($css as $key => $value) { if ($value != '') { $pairs[] = $key . ': ' . $value; } } if (!empty($pairs)) { $string = implode('; ', $pairs) . ';'; } return $string; } }