1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Site.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Socialnetwork\Site;
6
7use Bitrix\Socialnetwork\Collab\Integration\Extranet\Extranet;
8use Bitrix\Socialnetwork\Helper\SingletonTrait;
9use CSite;
10
11class Site
12{
13 use SingletonTrait;
14
15 protected string $mainSiteId;
16 protected string $extranetSiteId;
17
18 private function __construct()
19 {
20 $this->init();
21 }
22
23 public function getMainSiteId(): string
24 {
25 return $this->mainSiteId;
26 }
27
28 public function getExtranetSiteId(): string
29 {
31 }
32
33 public function getCollabSiteIds(): array
34 {
36 }
37
38 public function getDirectory(): string
39 {
40 return SITE_DIR;
41 }
42
43 private function init(): void
44 {
45 $this->mainSiteId = (string)CSite::GetDefSite();
46 $this->extranetSiteId = Extranet::getSiteId();
47 }
48}
getExtranetSiteId()
Определения Site.php:28
string $mainSiteId
Определения Site.php:15
getMainSiteId()
Определения Site.php:23
string $extranetSiteId
Определения Site.php:16
getDirectory()
Определения Site.php:38
getCollabSiteIds()
Определения Site.php:33
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
const SITE_DIR(!defined('LANG'))
Определения include.php:72