Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
subject.php
1
<?php
2
9
namespace
Bitrix\Socialnetwork\Helper\Workgroup
;
10
11
use
Bitrix\Socialnetwork\WorkgroupSubjectTable
;
12
13
class
Subject
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
}
Bitrix\Socialnetwork\Helper\Workgroup\Subject
Definition
subject.php:14
Bitrix\Socialnetwork\Helper\Workgroup\Subject\getName
static getName(int $subjectId=0)
Definition
subject.php:15
Bitrix\Socialnetwork\WorkgroupSubjectTable
Definition
workgroupsubject.php:32
Bitrix\Socialnetwork\Helper\Workgroup
Definition
access.php:9
modules
socialnetwork
lib
helper
workgroup
subject.php
Создано системой
1.10.0