1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
structureteam.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\UI\AccessRights\Entity;
4
5
use Bitrix\HumanResources\Builder\Structure\Filter\Column\IdFilter;
6
use Bitrix\HumanResources\Builder\Structure\Filter\NodeFilter;
7
use Bitrix\HumanResources\Builder\Structure\NodeDataBuilder;
8
use Bitrix\HumanResources\Item\Node;
9
use Bitrix\Main\Access\AccessCode;
10
use Bitrix\Main\Loader;
11
12
class
StructureTeam
extends
EntityBase
13
{
17
public
function
getModel
()
18
{
19
return
$this->model ??
null
;
20
}
21
22
public
function
getType
(): string
23
{
24
return
AccessCode::TYPE_STRUCTURE_TEAM;
25
}
26
27
public
function
getName
(): string
28
{
29
return
$this->
getModel
()?->name ??
''
;
30
}
31
32
public
function
getUrl
(): string
33
{
34
return
''
;
35
}
36
37
public
function
getAvatar
(
int
$width
= 58,
int
$height = 58): ?string
38
{
39
return
''
;
40
}
41
42
protected
function
loadModel
(): void
43
{
44
if
(
45
!$this->model
46
&&
Loader::includeModule
(
'humanresources'
)
47
&& class_exists(NodeDataBuilder::class)
48
)
49
{
50
$this->model = NodeDataBuilder::createWithFilter(
51
new
NodeFilter(IdFilter::fromId($this->
getId
()))
52
)
53
->get()
54
;
55
}
56
}
57
}
Bitrix\Main\Loader\includeModule
static includeModule($moduleName)
Определения
loader.php:67
Bitrix\Main\UI\AccessRights\Entity\EntityBase
Определения
entitybase.php:13
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getId
getId()
Определения
entitybase.php:23
Bitrix\Main\UI\AccessRights\Entity\StructureTeam
Определения
structureteam.php:13
Bitrix\Main\UI\AccessRights\Entity\StructureTeam\getModel
getModel()
Определения
structureteam.php:17
Bitrix\Main\UI\AccessRights\Entity\StructureTeam\getName
getName()
Определения
structureteam.php:27
Bitrix\Main\UI\AccessRights\Entity\StructureTeam\loadModel
loadModel()
Определения
structureteam.php:42
Bitrix\Main\UI\AccessRights\Entity\StructureTeam\getAvatar
getAvatar(int $width=58, int $height=58)
Определения
structureteam.php:37
Bitrix\Main\UI\AccessRights\Entity\StructureTeam\getType
getType()
Определения
structureteam.php:22
Bitrix\Main\UI\AccessRights\Entity\StructureTeam\getUrl
getUrl()
Определения
structureteam.php:32
$width
$width
Определения
html.php:68
bitrix
modules
main
lib
ui
accessrights
entity
structureteam.php
Создано системой
1.14.0