Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
projectassembler.php
1<?php
3
7
8class ProjectAssembler implements Assembler
9{
15 public static function toDTO(HttpRequest $request)
16 {
17 $project = new Project();
18
19 $taskSpec = TaskSpecAssembler::toDTO($request);
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}