• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/classes/general/im_settings.php
  • Класс: CIMSettings
  • Вызов: CIMSettings::GetPrivacy
static function GetPrivacy($type, $userId = false)
{
	$userId = $userId === false ? null : $userId;
	$userId = Common::getUserId($userId);

	if (!$userId)
	{
		return null;
	}

	if (Manager::isSettingsMigrated() || Manager::isUserMigrated($userId))
	{
		return General::createWithUserId($userId)->getValue($type);
	}

	$ar = CIMSettings::Get($userId);

	return array_key_exists($type, $ar[CIMSettings::SETTINGS])? $ar[CIMSettings::SETTINGS][$type]: false;
}