Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
CalendarType.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Chat\EntityLink
;
4
5
use
Bitrix\Im\V2\Chat\EntityLink
;
6
use
Bitrix\Main\Loader
;
7
use
Bitrix\Main\Web\Uri
;
8
9
class
CalendarType
extends
EntityLink
10
{
11
protected
const
HAS_URL
=
true
;
12
13
protected
function
getUrl
(): string
14
{
15
if
(!Loader::includeModule(
'calendar'
))
16
{
17
return
''
;
18
}
19
20
$uri =
new
Uri
(\CCalendar::GetPathForCalendarEx($this->getContext()->getUserId()));
21
$uri->addParams([
'EVENT_ID'
=> $this->entityId]);
22
$url
= $uri->getUri();
23
24
return
$url
;
25
}
26
}
Bitrix\Im\V2\Chat\EntityLink\CalendarType
Definition
CalendarType.php:10
Bitrix\Im\V2\Chat\EntityLink\CalendarType\HAS_URL
const HAS_URL
Definition
CalendarType.php:11
Bitrix\Im\V2\Chat\EntityLink\CalendarType\getUrl
getUrl()
Definition
CalendarType.php:13
Bitrix\Im\V2\Chat\EntityLink
Definition
EntityLink.php:18
Bitrix\Im\V2\Chat\EntityLink\$url
string $url
Definition
EntityLink.php:34
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Main\Web\Uri
Definition
uri.php:17
Bitrix\Im\V2\Chat\EntityLink
Definition
CalendarType.php:3
modules
im
lib
V2
Chat
EntityLink
CalendarType.php
Создано системой
1.10.0