Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
context.php
1<?php
2
4
6
7abstract 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
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}