RelationManager::getChildElements

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. RelationManager
  4. getChildElements
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/RelationManager.php
  • Класс: Bitrix\Crm\Relation\RelationManager
  • Вызов: RelationManager::getChildElements
public function getChildElements(ItemIdentifier $parent): array
{
	$childrenArrays = [];
	foreach ($this->getChildRelations($parent->getEntityTypeId()) as $relation)
	{
		$childrenArrays[] = $relation->getChildElements($parent);
	}

	return $this->flattenArray($childrenArrays);
}

Добавить комментарий