Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
TasksType.php
1<?php
2
4
7
8class 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}