Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
counterfactory.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed
;
4
5
use
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderInterface
;
6
7
class
CounterFactory
8
{
9
public
static
function
getLiveFeedCounterProvider
(
int
$userId):
ProviderInterface
10
{
11
$counterProvider =
new
CounterProvider
($userId);
12
13
return
($counterProvider->isEnabled() && $counterProvider->isCounted())
14
? $counterProvider
15
:
new
LegacyCounterProvider
($userId);
16
}
17
}
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\CounterFactory
Definition
counterfactory.php:8
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\CounterFactory\getLiveFeedCounterProvider
static getLiveFeedCounterProvider(int $userId)
Definition
counterfactory.php:9
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\CounterProvider
Definition
counterprovider.php:10
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\LegacyCounterProvider
Definition
legacycounterprovider.php:9
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderInterface
Definition
providerinterface.php:6
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed
Definition
counterfactory.php:3
modules
socialnetwork
lib
integration
socialnetwork
livefeed
counterfactory.php
Создано системой
1.10.0