• Модуль: ldap
  • Путь к файлу: ~/bitrix/modules/ldap/classes/general/ldap.php
  • Класс: CLDAP
  • Вызов: CLDAP::GetGroupMaps
public function GetGroupMaps()
{
	global $DB;

	if(!is_array($this->arGroupMaps))
	{
		$this->arGroupMaps = array();
		$rsCorellations = $DB->Query("SELECT LDAP_GROUP_ID, GROUP_ID FROM b_ldap_group WHERE LDAP_SERVER_ID=".intval($this->arFields['ID']));

		while ($arCorellation = $rsCorellations->Fetch())
		{
			if(!is_array($this->arGroupMaps[$arCorellation["LDAP_GROUP_ID"]]))
				$this->arGroupMaps[$arCorellation["LDAP_GROUP_ID"]] = array();

			$this->arGroupMaps[$arCorellation["LDAP_GROUP_ID"]][] = $arCorellation["GROUP_ID"];
		}
	}

	return $this->arGroupMaps;
}