1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
entitybase.php
См. документацию.
1<?php
8
9namespace Bitrix\Main\UI\AccessRights\Entity;
10
11abstract class EntityBase
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}
getAvatar(int $width=58, int $height=58)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$width
Определения html.php:68