Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
parametersunpacking.php
1<?php
2
4
8
10{
11 public function onBeforeAction(Event $event)
12 {
13 $request = Context::getCurrent()->getRequest();
14 $packedParameters = $request->get("serializedParameters");
15 if(is_string($packedParameters))
16 {
17 $decodedParameters = gzdecode(base64_decode($packedParameters));
18
19 if(is_string($decodedParameters))
20 {
21 $unpackedParameters = Json::decode($decodedParameters);
22 if(is_array($unpackedParameters))
23 {
25 $this->getAction()->getController()->setSourceParametersList([
26 $unpackedParameters
27 ]);
28 }
29 }
30 }
31 }
32}
static getCurrent()
Definition context.php:241