Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
context.php
1
<?php
2
3
namespace
Bitrix\Calendar\Integration\SocialNetwork\Context
;
4
5
use
Bitrix\Calendar\Integration\SocialNetwork\SpaceService
;
6
7
abstract
class
Context
8
{
9
private
static
?
string
$spaces =
null
;
10
private
static
string
$default =
'default'
;
11
12
public
static
function
getSpaces
(): ?string
13
{
14
if
(!is_null(self::$spaces))
15
{
16
return
self::$spaces;
17
}
18
19
if
(
SpaceService::isAvailable
())
20
{
21
self::$spaces = \Bitrix\Socialnetwork\Livefeed\Context\Context::SPACES;
22
}
23
24
return
self::$spaces;
25
}
26
27
public
static
function
getDefault
(): string
28
{
29
return
self::$default;
30
}
31
}
Bitrix\Calendar\Integration\SocialNetwork\Context\Context
Definition
context.php:8
Bitrix\Calendar\Integration\SocialNetwork\Context\Context\getDefault
static getDefault()
Definition
context.php:27
Bitrix\Calendar\Integration\SocialNetwork\Context\Context\getSpaces
static getSpaces()
Definition
context.php:12
Bitrix\Calendar\Integration\SocialNetwork\SpaceService
Definition
spaceservice.php:11
Bitrix\Calendar\Integration\SocialNetwork\SpaceService\isAvailable
static isAvailable()
Definition
spaceservice.php:21
Bitrix\Calendar\Integration\SocialNetwork\Context
Definition
context.php:3
modules
calendar
lib
integration
socialnetwork
context
context.php
Создано системой
1.10.0