• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/CustomSection/DataStructures/Assembler.php
  • Класс: BitrixIntranetCustomSectionDataStructuresAssembler
  • Вызов: 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['MODULE_ID']))
	{
		$customSection->setModuleId((string)$row['MODULE_ID']);
	}
	if (isset($row['PAGES']) && is_array($row['PAGES']))
	{
		$pages = [];
		foreach ($row['PAGES'] as $pageRow)
		{
			$pages[] = static::constructCustomSectionPage($pageRow);
		}

		$customSection->setPages($pages);
	}

	return $customSection;
}