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

	if ($this->actions)
	{
		$likeDataSet[$this->convertKeyToDataSet('data-actions')] = Json::encode($this->actions);
	}

	return $likeDataSet;
}