23 return self::FINISH_EXECUTION;
25 return self::CONTINUE_EXECUTION;
28 private static function do()
30 $limit = self::$limit;
31 $dbRes = Main\Application::getConnection()->query(<<<SQL
33FROM b_forum_service_statistic_queue
34WHERE ENTITY_TYPE=
'FORUM'
41 while ($res = $dbRes->fetch())
43 \Bitrix\Forum\Forum::getById($res[
"ENTITY_ID"])->calculateStatistic();
49 Main\Application::getConnection()->queryExecute(<<<SQL
50DELETE FROM b_forum_service_statistic_queue WHERE ID >= {$last[
'ID']} AND ENTITY_TYPE=
'FORUM'
57 public static function run(
int $forumId)
59 Main\Application::getConnection()->queryExecute(<<<SQL
60INSERT IGNORE INTO b_forum_service_statistic_queue (ENTITY_TYPE, ENTITY_ID) VALUES (
'FORUM', {$forumId});
static getMessage($code, $replace=null, $language=null)