- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
- Класс: BitrixIntranetComponentUserProfile
- Вызов: UserProfile::changeGdprAction
public function changeGdprAction($type = "", $value = "")
{
if (in_array($type, ["gdpr_email_info", "gdpr_email_training"]))
{
$currentDate = new Date;
$currentDate = $currentDate->getTimestamp();
$data = [
"value" => ($value === "Y" ? "Y" : "N"),
"date" => $currentDate
];
CUserOptions::SetOption('bitrix24', $type, $data);
if (Loader::includeModule("bitrix24") && CBitrix24::isPortalCreator())
{
Option::set("bitrix24", $type, $value);
}
}
}