- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/authproviders.php
- Класс: CGroupAuthProvider
- Вызов: CGroupAuthProvider::GetNames
public function GetNames($arCodes)
{
$aID = array();
foreach($arCodes as $code)
if(preg_match('/^G[0-9]+$/', $code))
$aID[] = substr($code, 1);
if(!empty($aID))
{
$arResult = array();
$res = CGroup::GetList('id', 'asc', array("ANONYMOUS"=>"N", "ID"=>implode("|", $aID)));
while($arGroup = $res->Fetch())
{
$arResult["G".$arGroup["ID"]] = array("provider" => GetMessage("authprov_group_prov"), "name"=>$arGroup["NAME"]);
}
return $arResult;
}
return false;
}