Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
applayoutlink.php
1<?php
3
5{
6 protected $requestFields;
7
8 public function __construct()
9 {
10 parent::__construct();
11
12 $this->requestFields = new \Bitrix\Sale\Internals\Fields(
13 \Bitrix\Main\Context::getCurrent()->getRequest()->toArray());
14 }
15
16 public function getType()
17 {
19 }
20
21 public function fill()
22 {
23 $this->query->set('restAppLayoutMode', 'Y');
24 $this->query->set('IFRAME', 'Y');
25
26 if((int)$this->requestFields->get('entityId')>0)
27 $this->query->set('entityId', $this->requestFields->get('entityId'));
28
29 if((int)$this->requestFields->get('entityTypeId')>0)
30 $this->query->set('entityTypeId', $this->requestFields->get('entityTypeId'));
31
32 return parent::fill();
33 }
34}
static getCurrent()
Definition context.php:241