1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
projectassembler.php
См. документацию.
1<?php
2namespace Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler;
3
4use Bitrix\Main\HttpRequest;
5use Bitrix\Sender\Integration\Yandex\Toloka\DTO\Project;
6use Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject;
7
8class ProjectAssembler implements Assembler
9{
15 public static function toDTO(HttpRequest $request)
16 {
17 $project = new Project();
18
20 $project->setTaskSpec($taskSpec);
21
22 $id = (int)$request->get('id');
23 if ($id)
24 {
25 $project->setId($id);
26 }
27
28
29 $project->setPublicName($request->get('name'));
30 $project->setPublicDescription($request->get('description'));
31 $project->setPublicInstructions($request->get('instruction'));
32
33 return $project;
34 }
35}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36