• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/dom/cssparser.php
  • Класс: BitrixMainWebDOMCssParser
  • Вызов: CssParser::getDeclarationString
static function getDeclarationString($declarationList)
{
	$result = '';
	foreach($declarationList as $property => $value)
	{
		if (is_array($value))
		{
			foreach ($value as $valueChunk)
			{
				$result .= trim($property) . ': ' . trim($valueChunk) . ';';
			}
		}
		else
		{
			$result .= trim($property) . ': ' . trim($value) . ';';
		}
	}

	return $result;
}