Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
topicmembersstepper.php
1<?
3
7
9{
10 protected static $moduleId = "forum";
11
12 public static function getTitle()
13 {
14 return Loc::getMessage("FORUM_TOPIC_MEMBERS_STEPPER_TITLE");
15 }
19 public function execute(array &$option)
20 {
21 $res = Main\Config\Option::get("forum", "stat.user.recalc.topic", "");
22 $res = unserialize($res, ["allowed_classes" => false]);
23 if (is_array($res) && !empty($res))
24 {
25 Forum\Statistic\User::calcForTopics(array_keys($res));
26 Main\Config\Option::delete("forum", ["name" => "stat.user.recalc.topic"]);
27 }
29 }
30
31 public static function calc(int $topicId)
32 {
33 Forum\Statistic\User::runForTopic($topicId);
34 }
35}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29