Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
modificationfieldsbase.php
1
<?php
2
3
4
namespace
Bitrix\Rest\Integration
;
5
6
7
use
Bitrix\Main\Engine\Controller
;
8
9
class
ModificationFieldsBase
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
24
public
function
__construct
(
ViewManager
$manager
,
$data
=[])
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
}
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Rest\Integration\ModificationFieldsBase
Definition
modificationfieldsbase.php:10
Bitrix\Rest\Integration\ModificationFieldsBase\getArguments
getArguments()
Definition
modificationfieldsbase.php:48
Bitrix\Rest\Integration\ModificationFieldsBase\$format
$format
Definition
modificationfieldsbase.php:19
Bitrix\Rest\Integration\ModificationFieldsBase\setArguments
setArguments($arguments)
Definition
modificationfieldsbase.php:53
Bitrix\Rest\Integration\ModificationFieldsBase\getView
getView(Controller $controller)
Definition
modificationfieldsbase.php:73
Bitrix\Rest\Integration\ModificationFieldsBase\getManager
getManager()
Definition
modificationfieldsbase.php:38
Bitrix\Rest\Integration\ModificationFieldsBase\$controller
$controller
Definition
modificationfieldsbase.php:22
Bitrix\Rest\Integration\ModificationFieldsBase\__construct
__construct(ViewManager $manager, $data=[])
Definition
modificationfieldsbase.php:24
Bitrix\Rest\Integration\ModificationFieldsBase\getName
getName()
Definition
modificationfieldsbase.php:43
Bitrix\Rest\Integration\ModificationFieldsBase\$manager
$manager
Definition
modificationfieldsbase.php:20
Bitrix\Rest\Integration\ModificationFieldsBase\$arguments
$arguments
Definition
modificationfieldsbase.php:21
Bitrix\Rest\Integration\ModificationFieldsBase\$data
$data
Definition
modificationfieldsbase.php:17
Bitrix\Rest\Integration\ModificationFieldsBase\CHECK_REQUIRED
const CHECK_REQUIRED
Definition
modificationfieldsbase.php:15
Bitrix\Rest\Integration\ModificationFieldsBase\getData
getData()
Definition
modificationfieldsbase.php:68
Bitrix\Rest\Integration\ModificationFieldsBase\SORTING_KEYS
const SORTING_KEYS
Definition
modificationfieldsbase.php:14
Bitrix\Rest\Integration\ModificationFieldsBase\getController
getController()
Definition
modificationfieldsbase.php:63
Bitrix\Rest\Integration\ModificationFieldsBase\TO_SNAKE
const TO_SNAKE
Definition
modificationfieldsbase.php:13
Bitrix\Rest\Integration\ModificationFieldsBase\$name
$name
Definition
modificationfieldsbase.php:18
Bitrix\Rest\Integration\ModificationFieldsBase\setFormat
setFormat($format)
Definition
modificationfieldsbase.php:58
Bitrix\Rest\Integration\ModificationFieldsBase\TO_WHITE_LIST
const TO_WHITE_LIST
Definition
modificationfieldsbase.php:11
Bitrix\Rest\Integration\ModificationFieldsBase\TO_CAMEL
const TO_CAMEL
Definition
modificationfieldsbase.php:12
Bitrix\Rest\Integration\ViewManager
Definition
viewmanager.php:11
Bitrix\Rest\Integration
Definition
catalogviewmanager.php:4
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
rest
lib
integration
modificationfieldsbase.php
Создано системой
1.10.0