• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/entityselector/preselectedcollection.php
  • Класс: BitrixUIEntitySelectorPreselectedCollection
  • Вызов: PreselectedCollection::load
public function load(array $ids)
{
	foreach ($ids as $itemId)
	{
		if (!is_array($itemId) || count($itemId) !== 2)
		{
			continue;
		}

		[$entityId, $id] = $itemId;
		if (is_string($entityId) && (is_string($id) || is_int($id)))
		{
			if ($this->get($entityId, $id) === null)
			{
				$this->add(new PreselectedItem(['entityId' => $entityId, 'id' => $id]));
			}
		}
	}
}