Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
restappboard.php
1<?php
2
4
6{
7 protected $placement;
8 protected $restAppId;
10
14 public function getPlacement()
15 {
16 return $this->placement;
17 }
18
22 public function setPlacement($placement): void
23 {
24 $this->placement = $placement;
25 }
26
30 public function getRestAppId()
31 {
32 return $this->restAppId;
33 }
34
38 public function setRestAppId($restAppId): void
39 {
40 $this->restAppId = $restAppId;
41 }
42
46 public function getPlacementHandlerId()
47 {
49 }
50
55 {
56 $this->placementHandlerId = $placementHandlerId;
57 }
58
59 public function getDisplayComponentName()
60 {
61 return 'bitrix:app.layout';
62 }
63
64 public function getDisplayComponentParams()
65 {
66 return [
67 'PLACEMENT' => $this->getPlacement(),
68 'PLACEMENT_OPTIONS' => [],
69 'ID' => $this->getRestAppId(),
70 'PLACEMENT_ID' => $this->getPlacementHandlerId(),
71 'PARAM' => [
72 'FRAME_WIDTH' => '100%',
73 'FRAME_HEIGHT' => 'calc(100vh - 75px)',
74 ],
75 ];
76 }
77}