Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
entitybase.php
1
<?php
9
namespace
Bitrix\Main\UI\AccessRights\Entity
;
10
11
abstract
class
EntityBase
12
implements
AccessRightEntityInterface
13
{
14
protected
$id
;
15
protected
$model
;
16
17
public
function
__construct
(
int
$id
)
18
{
19
$this->
id
=
$id
;
20
$this->
loadModel
();
21
}
22
23
public
function
getId
(): int
24
{
25
return
$this->id
;
26
}
27
28
abstract
public
function
getType
(): string;
29
abstract
public
function
getName
(): string;
30
abstract
public
function
getUrl
(): string;
31
abstract
public
function
getAvatar
(
int
$width = 58,
int
$height = 58): ?string;
32
33
public
function
getMetaData
(): array
34
{
35
return
[
36
'type'
=> $this->
getType
(),
37
'id'
=> $this->
getId
(),
38
'name'
=> $this->
getName
(),
39
'url'
=> $this->
getUrl
(),
40
'avatar'
=> $this->
getAvatar
()
41
];
42
}
43
44
abstract
protected
function
loadModel
();
45
}
Bitrix\Main\UI\AccessRights\Entity\EntityBase
Definition
entitybase.php:13
Bitrix\Main\UI\AccessRights\Entity\EntityBase\$model
$model
Definition
entitybase.php:15
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getId
getId()
Definition
entitybase.php:23
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getName
getName()
Bitrix\Main\UI\AccessRights\Entity\EntityBase\loadModel
loadModel()
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getAvatar
getAvatar(int $width=58, int $height=58)
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getType
getType()
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getMetaData
getMetaData()
Definition
entitybase.php:33
Bitrix\Main\UI\AccessRights\Entity\EntityBase\__construct
__construct(int $id)
Definition
entitybase.php:17
Bitrix\Main\UI\AccessRights\Entity\EntityBase\getUrl
getUrl()
Bitrix\Main\UI\AccessRights\Entity\EntityBase\$id
$id
Definition
entitybase.php:14
Bitrix\Main\UI\AccessRights\Entity\AccessRightEntityInterface
Definition
accessrightentityinterface.php:12
Bitrix\Main\UI\AccessRights\Entity
Definition
accessdirector.php:4
modules
main
lib
ui
accessrights
entity
entitybase.php
Создано системой
1.10.0