Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
modificationfieldsbase.php
1<?php
2
3
5
6
8
10{
11 const TO_WHITE_LIST = 'TO_WHITE_LIST';
12 const TO_CAMEL = 'TO_CAMEL';
13 const TO_SNAKE = 'TO_SNAKE';
14 const SORTING_KEYS = 'SORTING_KEYS';
15 const CHECK_REQUIRED = 'CHECK_REQUIRED';
16
17 protected $data;
18 protected $name;
19 protected $format;
20 protected $manager;
21 protected $arguments;
22 protected $controller;
23
25 {
26 $this->manager = $manager;
27
28 $this->name = $this->getManager()->getControllerAction()->getName();
29 $this->arguments = $this->getManager()->getControllerAction()->getArguments();
30 $this->controller = $this->getManager()->getControllerAction()->getController();
31
32 $this->data = $data;
33 }
34
38 public function getManager()
39 {
40 return $this->manager;
41 }
42
43 public function getName()
44 {
45 return $this->name;
46 }
47
48 public function getArguments()
49 {
50 return $this->arguments;
51 }
52
53 public function setArguments($arguments)
54 {
55 $this->arguments = $arguments;
56 }
57
58 public function setFormat($format): void
59 {
60 $this->format = $format;
61 }
62
63 public function getController()
64 {
65 return $this->controller;
66 }
67
68 public function getData()
69 {
70 return $this->data;
71 }
72
73 protected function getView(Controller $controller)
74 {
75 return $this->getManager()->getView($controller);
76 }
77}