1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
viewspecassembler.php
См. документацию.
1<?php
2namespace Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler;
3
4use Bitrix\Main\HttpRequest;
5use Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset;
6use Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject;
7use Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpec;
8use Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpecSettings;
9
11{
12
18 public static function toDTO(HttpRequest $request)
19 {
20 $viewSpec = new ViewSpec();
21 $viewSpecSettings = new ViewSpecSettings();
22
23 $viewSpec->setMarkup($request->get('markup'));
24 $viewSpec->setScript($request->get('script'));
25 $viewSpec->setStyles($request->get('styles'));
26 $viewSpec->setAssets(new Asset());
27 $viewSpec->setSettings($viewSpecSettings);
28
29 return $viewSpec;
30 }
31}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36