• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/CustomSection/DataStructures/Assembler.php
  • Класс: BitrixIntranetCustomSectionDataStructuresAssembler
  • Вызов: Assembler::constructCustomSectionFromEntityObject
static function constructCustomSectionFromEntityObject(EO_CustomSection $entityObject): CustomSection
{
	$data = $entityObject->collectValues(Values::ALL, FieldTypeMask::SCALAR);

	if (!is_null($entityObject->getPages()))
	{
		$pages = [];
		foreach ($entityObject->getPages() as $page)
		{
			$pages[] = $page->collectValues();
		}

		$data['PAGES'] = $pages;
	}

	return static::constructCustomSection($data);
}