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

	if (isset($row['ID']))
	{
		$customSection->setId((int)$row['ID']);
	}
	if (isset($row['CODE']))
	{
		$customSection->setCode((string)$row['CODE']);
	}
	if (isset($row['TITLE']))
	{
		$customSection->setTitle((string)$row['TITLE']);
	}
	if (isset($row['PAGES']) && is_array($row['PAGES']))
	{
		$pages = [];
		foreach ($row['PAGES'] as $pageRow)
		{
			$pages[] = static::constructCustomSectionPage($pageRow);
		}

		$customSection->setPages($pages);
	}

	return $customSection;
}