1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
UrlManager.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
10
12{
13 public static function getCollabUrlById(int $collabId, array $parameters = []): string
14 {
15 $chatId = (int)($parameters['chatId'] ?? 0);
16 if ($chatId > 0)
17 {
18 $site = Site::getInstance();
19
20 return $site->getDirectory() . 'online/?IM_DIALOG=chat' . $chatId;
21 }
22
23 $collab = CollabRegistry::getInstance()->get($collabId);
24 if ($collab === null)
25 {
26 return '';
27 }
28
29 return static::getCollabUrl($collab);
30 }
31
32 public static function getCollabUrlTemplateDialogId(): string
33 {
34 $site = Site::getInstance();
35
36 return $site->getDirectory() . 'online/?IM_DIALOG=#DIALOG_ID#';
37 }
38
39 public static function getCollabUrl(Collab $collab): string
40 {
41 $site = Site::getInstance();
42
43 return $site->getDirectory() . 'online/?IM_DIALOG=' . $collab->getDialogId();
44 }
45}
static getCollabUrl(Collab $collab)
Определения UrlManager.php:39
static getCollabUrlTemplateDialogId()
Определения UrlManager.php:32
static getCollabUrlById(int $collabId, array $parameters=[])
Определения UrlManager.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$site
Определения yandex_run.php:614