Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
TasksType.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
8
class
TasksType
extends
EntityLink
9
{
10
protected
const
HAS_URL
=
true
;
11
12
protected
function
getUrl
(): string
13
{
14
if
(!Loader::includeModule(
'tasks'
))
15
{
16
return
''
;
17
}
18
19
$url
= \CTasksTools::GetOptionPathTaskUserEntry(SITE_ID,
"/company/personal/user/#user_id#/tasks/task/view/#task_id#/"
);
20
$url
= str_replace([
'#user_id#'
,
'#task_id#'
], [$this->getContext()->getUserId(), $this->entityId], mb_strtolower(
$url
));
21
22
return
$url
;
23
}
24
}
Bitrix\Im\V2\Chat\EntityLink\TasksType
Definition
TasksType.php:9
Bitrix\Im\V2\Chat\EntityLink\TasksType\HAS_URL
const HAS_URL
Definition
TasksType.php:10
Bitrix\Im\V2\Chat\EntityLink\TasksType\getUrl
getUrl()
Definition
TasksType.php:12
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\Im\V2\Chat\EntityLink
Definition
CalendarType.php:3
modules
im
lib
V2
Chat
EntityLink
TasksType.php
Создано системой
1.10.0