1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
TasksType.php:9
Bitrix\Im\V2\Chat\EntityLink\TasksType\HAS_URL
const HAS_URL
Определения
TasksType.php:10
Bitrix\Im\V2\Chat\EntityLink\TasksType\getUrl
getUrl()
Определения
TasksType.php:12
Bitrix\Im\V2\Chat\EntityLink\$url
string $url
Определения
EntityLink.php:28
Bitrix\Im\V2\Chat\EntityLink
Определения
CalendarType.php:3
SITE_ID
const SITE_ID
Определения
sonet_set_content_view.php:12
bitrix
modules
im
lib
V2
Chat
EntityLink
TasksType.php
Создано системой
1.14.0