Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
subject.php
1<?php
2
10
12
14{
15 public static function getName(int $subjectId = 0): string
16 {
17 $result = '';
18 if ($subjectId <= 0)
19 {
20 return $result;
21 }
22
23 $res = WorkgroupSubjectTable::getList([
24 'filter' => [
25 '=ID' => $subjectId,
26 ],
27 'select' => [
28 'NAME'
29 ],
30 ]);
31
32 if ($subjectFields = $res->fetch())
33 {
34 $result = $subjectFields['NAME'];
35 }
36
37 return $result;
38 }
39}