Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
topicmembersstepper.php
1
<?
2
namespace
Bitrix\Forum\Statistic
;
3
4
use
Bitrix\Forum
;
5
use
Bitrix\Main
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
TopicMembersStepper
extends
Main\Update\Stepper
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
}
28
return
self::FINISH_EXECUTION
;
29
}
30
31
public
static
function
calc
(
int
$topicId)
32
{
33
Forum\Statistic\User::runForTopic($topicId);
34
}
35
}
Bitrix\Forum\Statistic\TopicMembersStepper
Definition
topicmembersstepper.php:9
Bitrix\Forum\Statistic\TopicMembersStepper\calc
static calc(int $topicId)
Definition
topicmembersstepper.php:31
Bitrix\Forum\Statistic\TopicMembersStepper\execute
execute(array &$option)
Definition
topicmembersstepper.php:19
Bitrix\Forum\Statistic\TopicMembersStepper\$moduleId
static $moduleId
Definition
topicmembersstepper.php:10
Bitrix\Forum\Statistic\TopicMembersStepper\getTitle
static getTitle()
Definition
topicmembersstepper.php:12
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\Update\Stepper
Definition
stepper.php:27
Bitrix\Main\Update\Stepper\FINISH_EXECUTION
const FINISH_EXECUTION
Definition
stepper.php:34
Bitrix\Forum\Statistic
Definition
forum.php:2
Bitrix\Forum
Bitrix\Main
modules
forum
lib
statistic
topicmembersstepper.php
Создано системой
1.10.0