Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
viewspecassembler.php
1
<?php
2
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler
;
3
4
use
Bitrix\Main\HttpRequest
;
5
use
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset
;
6
use
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
;
7
use
Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpec
;
8
use
Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpecSettings
;
9
10
class
ViewSpecAssembler
implements
Assembler
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
}
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\ViewSpecAssembler
Definition
viewspecassembler.php:11
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\ViewSpecAssembler\toDTO
static toDTO(HttpRequest $request)
Definition
viewspecassembler.php:18
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset
Definition
asset.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpec
Definition
viewspec.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpecSettings
Definition
viewspecsettings.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\Assembler
Definition
assembler.php:8
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler
Definition
assembler.php:2
modules
sender
lib
integration
yandex
toloka
dto
assembler
viewspecassembler.php
Создано системой
1.10.0