1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ConfigStoreRequest.php
См. документацию.
1<?php
2
3namespace Bitrix\Rest\FormConfig;
4
5use Bitrix\Main\Application;
6use Bitrix\Main\ArgumentException;
7use Bitrix\Main\Web\Json;
8
10{
11 private string $parameterName;
12
13 public function __construct(string $parameterName)
14 {
15 $this->parameterName = $parameterName;
16 }
17
18 public function provide(): array
19 {
20 $request = Application::getInstance()->getContext()->getRequest();
21 $jsonConfig = $request->getPost('config');
22 try
23 {
24 $config = Json::decode($jsonConfig);
25 }
26 catch (ArgumentException $exception)
27 {
28 return [];
29 }
30
31 return $config;
32 }
33}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
__construct(string $parameterName)
Определения ConfigStoreRequest.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$config
Определения quickway.php:69