public static function GetSettings($userId = false) { $arSettings = CIMSettings::Get($userId); return $arSettings['settings']; }
public static function GetPrivacy($type, $userId = false) { $ar = CIMSettings::Get($userId); return array_key_exists($type, $ar[CIMSettings::SETTINGS]) ? $ar[CIMSettings::SETTINGS][$type] : false; }
if (array_key_exists('notify', $arSettings)) { CIMSettings::Set(CIMSettings::NOTIFY, $arSettings['notify']); unset($arSettings['notify']); } CIMSettings::Set(CIMSettings::SETTINGS, $arSettings); echo CUtil::PhpToJsObject(Array( 'ERROR' => $errorMessage )); } else if ($_POST['IM_SETTINGS_NOTIFY_LOAD'] == 'Y') { $errorMessage = ""; $arSettings = CIMSettings::Get(); $arNotifyNames = CIMSettings::GetNotifyNames(); echo CUtil::PhpToJsObject(Array( 'NAMES' => $arNotifyNames, 'VALUES' => $arSettings['notify'], 'ERROR' => $errorMessage )); } else if ($_POST['IM_SETTINGS_SIMPLE_NOTIFY_LOAD'] == 'Y') { $errorMessage = ""; $arNotifyNames = CIMSettings::GetNotifyNames(); $arNotifyValues = CIMSettings::GetSimpleNotifyBlocked(true);