Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
roombuilderfromrequest.php
1<?php
3
5{
7 private $request;
8
12 public function __construct($request)
13 {
14 $this->request = $request;
15 }
16
17 function getId(): int
18 {
19 return (int)$this->request->getPost('id');
20 }
21
22 function getLocationId(): int
23 {
24 return (int)$this->request->getPost('location_id');
25 }
26
27 function getCapacity()
28 {
29 return $this->request->getPost('capacity');
30 }
31
32 function getNecessity()
33 {
34 return $this->request->getPost('necessity');
35 }
36
37 function getName()
38 {
39 return $this->request->getPost('name');
40 }
41
42 function getColor()
43 {
44 return $this->request->getPost('color');
45 }
46
47 function getOwnerId(): int
48 {
49 return (int)$this->request->getPost('ownerId');
50 }
51
52 function getAccess()
53 {
54 return $this->request->getPost('access');
55 }
56
57 function getCategoryId(): int
58 {
59 return (int)$this->request->getPost('categoryId');
60 }
61}