• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/intranet/customsection/assembler.php
  • Класс: Bitrix\Crm\Integration\Intranet\CustomSection\Assembler
  • Вызов: Assembler::constructCustomSectionPage
static function constructCustomSectionPage(array $row): CustomSection\Page
{
	$page = new CustomSection\Page();

	if (isset($row['ID']))
	{
		$page->setId((int)$row['ID']);
	}
	if (isset($row['CUSTOM_SECTION_ID']))
	{
		$page->setCustomSectionId((int)$row['CUSTOM_SECTION_ID']);
	}
	if (isset($row['CODE']))
	{
		$page->setCode((string)$row['CODE']);
	}
	if (isset($row['TITLE']))
	{
		$page->setTitle((string)$row['TITLE']);
	}
	if (isset($row['SORT']))
	{
		$page->setSort((int)$row['SORT']);
	}
	if (isset($row['SETTINGS']))
	{
		$page->setSettings((string)$row['SETTINGS']);
	}

	return $page;
}