- Модуль: socialnetwork
- Путь к файлу: ~/bitrix/modules/socialnetwork/classes/general/log.php
- Класс: CAllSocNetLog
- Вызов: CAllSocNetLog::CounterDecrement
static function CounterDecrement(
$logId,
$eventId = '',
$type = CSocNetLogCounter::TYPE_LOG_ENTRY,
$forAllAccess = false
): void
{
$logId = (int)$logId;
if ($logId <= 0)
{
return;
}
CUserCounter::IncrementWithSelect(
CSocNetLogCounter::GetSubSelect2(
$logId,
[
"TYPE" => $type,
"DECREMENT" => true,
"FOR_ALL_ACCESS" => $forAllAccess,
]
)
);
if ($eventId === "blog_post_important")
{
CUserCounter::IncrementWithSelect(
CSocNetLogCounter::GetSubSelect2(
$logId,
[
"TYPE" => CSocNetLogCounter::TYPE_LOG_ENTRY,
"CODE" => "'BLOG_POST_IMPORTANT'",
"DECREMENT" => true,
"FOR_ALL_ACCESS" => $forAllAccess,
]
)
);
}
}