1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\CounterFactory
Определения
counterfactory.php:8
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\CounterFactory\getLiveFeedCounterProvider
static getLiveFeedCounterProvider(int $userId)
Определения
counterfactory.php:9
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\CounterProvider
Определения
counterprovider.php:10
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed\LegacyCounterProvider
Определения
legacycounterprovider.php:9
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderInterface
Определения
providerinterface.php:6
Bitrix\Socialnetwork\Integration\SocialNetwork\LiveFeed
Определения
counterfactory.php:3
bitrix
modules
socialnetwork
lib
integration
socialnetwork
livefeed
counterfactory.php
Создано системой
1.14.0