1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
log_smartfilter.php
См. документацию.
1<?php
2
4
5require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/classes/general/log_smartfilter.php");
6
8{
9 public static function Set($user_id, $type)
10 {
11 global $DB;
12
13 $helper = Application::getConnection()->getSqlHelper();
14 $user_id = intval($user_id);
15
16 if ($user_id <= 0)
17 return false;
18
19 if ($type != "Y")
20 $type = "N";
21
22 $strSQL = $helper->prepareMerge(
23 'b_sonet_log_smartfilter',
24 [],
25 ['USER_ID' => $user_id, 'TYPE' => $type,],
26 ['TYPE' => $type,]
27 );
28 $res = $DB->Query($strSQL);
29
30 if ($res)
31 {
32 $cache = new \CPHPCache();
33 $cache->clean('sonet_smartfilter_default_'.$user_id, '/sonet/log_smartfilter/');
34 }
35 }
36}
$type
Определения options.php:106
static Set($user_id, $type)
Определения log_smartfilter.php:9
$res
Определения filter_act.php:7
$_SERVER["DOCUMENT_ROOT"]
Определения cron_frame.php:9
global $DB
Определения cron_frame.php:29