• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/integration/ui/entityselector/metauserprovider.php
  • Класс: BitrixSocialnetworkIntegrationUIEntitySelectorMetaUserProvider
  • Вызов: MetaUserProvider::fillDialog
public function fillDialog(Dialog $dialog): void
{
	if (!self::canViewAllUsers())
	{
		return;
	}

	$options = $this->getOptions();
	$ids = [];
	foreach (self::SUPPORTED_IDS as $id)
	{
		if (isset($options[$id]) && $options[$id]['allowView'] !== false)
		{
			$ids[] = $id;
		}
	}

	foreach (self::getMetaUsers($ids, $options) as $metaUser)
	{
		$dialog->addRecentItem($metaUser);
	}
}