60 public static function set(array $params = [])
64 $logId = (isset($params[
'logId']) ? intval($params[
'logId']) : 0);
65 $userId = (isset($params[
'userId']) ? intval($params[
'userId']) : (is_object($USER) && $USER instanceof \CUser ? $USER->getId() : 0));
77 $connection = \Bitrix\Main\Application::getConnection();
78 $helper = $connection->getSqlHelper();
83 'PINNED_DATE' => new \Bitrix\Main\DB\SqlExpression($helper->getCurrentDateTimeFunction()),
87 'PINNED_DATE' => new \Bitrix\Main\DB\SqlExpression($helper->getCurrentDateTimeFunction()),
90 $merge = $helper->prepareMerge(
91 static::getTableName(),
92 [
'LOG_ID',
'USER_ID' ],
99 $connection->query($merge[0]);