Dialog::getChildren

  1. Bitrix24 API (v. 23.675.0)
  2. ui
  3. Dialog
  4. getChildren
  • Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/entityselector/dialog.php
  • Класс: BitrixUIEntitySelectorDialog
  • Вызов: Dialog::getChildren
public function getChildren(Item $parentItem)
{
	$entities = [];
	foreach ($this->getEntities() as $entity)
	{
		if ($entity->hasDynamicLoad())
		{
			$entities[] = $entity->getId();
		}
	}

	$entity = $this->getEntity($parentItem->getEntityId());
	if ($entity && $entity->hasDynamicLoad())
	{
		$this->fillGlobalRecentItems($entities);
		$entity->getProvider()->getChildren($parentItem, $this);
	}
}

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