1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
intranetuserfieldassembler.php
См. документацию.
1<?php
2
3namespace Bitrix\Iblock\Grid\Row\Assembler;
4
5use Bitrix\Main\Grid\Row\Assembler\Field\UserFieldAssembler;
6
11{
12 private string $profilePathTemplate;
13
14 public function __construct(array $columnIds, string $profilePathTemplate)
15 {
16 parent::__construct($columnIds);
17
18 $this->profilePathTemplate = $profilePathTemplate;
19 }
20
21 private function getProfilePath(int $userId): string
22 {
23 return str_replace('#ID#', $userId, $this->profilePathTemplate);
24 }
25
26 protected function loadUserName(int $userId): string
27 {
28 $userName = parent::loadUserName($userId);
29 if (!empty($userName))
30 {
32 $profilePath = htmlspecialcharsbx($this->getProfilePath($userId));
33
34 return "<a href=\"{$profilePath}\" target='_blank' bx-tooltip-user-id='{$userId}'>{$userName}</a>";
35 }
36
37 return '';
38 }
39}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
__construct(array $columnIds, string $profilePathTemplate)
Определения intranetuserfieldassembler.php:14
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
Определения tools.php:2701
else $userName
Определения order_form.php:75