• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/authmanager.php
  • Класс: CSocServAuthManager
  • Вызов: CSocServAuthManager::AppyUserSettings
static function AppyUserSettings($suffix)
{
	$arAuthServices = self::$arAuthServices;

	//user settings: sorting, active
	$arServices = unserialize(COption::GetOptionString("socialservices", "auth_services".$suffix, ""), ["allowed_classes" => false]);
	if(is_array($arServices))
	{
		$i = 0;
		foreach($arServices as $serv=>$active)
		{
			if(isset($arAuthServices[$serv]))
			{
				$arAuthServices[$serv]["__sort"] = $i++;
				$arAuthServices[$serv]["__active"] = ($active == "Y");
			}
		}
		BitrixMainTypeCollection::sortByColumn($arAuthServices, "__sort");
	}
	return $arAuthServices;
}