• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/ui/viewer/itemattributes.php
  • Класс: BitrixMainUIViewerItemAttributes
  • Вызов: ItemAttributes::__toString
public function __toString()
{
	$string = '';
	foreach ($this->attributes as $key => $value)
	{
		if (is_int($key))
		{
			$string .= "{$value} ";
		}
		else
		{
			$value = htmlspecialcharsbx($value);
			$string .= "{$key}="{$value}" ";
		}
	}

	if ($this->actions)
	{
		$string .= "data-actions='" . htmlspecialcharsbx(Json::encode($this->actions)) . "'";
	}

	return $string;
}