Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
jshandler.php
1
<?php
2
3
namespace
Bitrix\UI\Buttons
;
4
5
final
class
JsHandler
implements
\JsonSerializable
6
{
10
private
$handler;
14
private
$context;
15
22
public
function
__construct
($handler, $context =
null
)
23
{
24
$this
25
->setHandler($handler)
26
->setContext($context)
27
;
28
}
29
33
public
function
getHandler
()
34
{
35
return
$this->handler;
36
}
37
43
public
function
setHandler
($handler)
44
{
45
$this->handler = $handler;
46
47
return
$this;
48
}
49
53
public
function
getContext
()
54
{
55
return
$this->context;
56
}
57
63
public
function
setContext
($context)
64
{
65
$this->context = $context;
66
67
return
$this;
68
}
69
77
public
function
jsonSerialize
()
78
{
79
return
[
80
'handler'
=> $this->
getHandler
(),
81
'context'
=> $this->
getContext
(),
82
];
83
}
84
}
Bitrix\UI\Buttons\JsHandler
Definition
jshandler.php:6
Bitrix\UI\Buttons\JsHandler\__construct
__construct($handler, $context=null)
Definition
jshandler.php:22
Bitrix\UI\Buttons\JsHandler\setContext
setContext($context)
Definition
jshandler.php:63
Bitrix\UI\Buttons\JsHandler\getContext
getContext()
Definition
jshandler.php:53
Bitrix\UI\Buttons\JsHandler\setHandler
setHandler($handler)
Definition
jshandler.php:43
Bitrix\UI\Buttons\JsHandler\jsonSerialize
jsonSerialize()
Definition
jshandler.php:77
Bitrix\UI\Buttons\JsHandler\getHandler
getHandler()
Definition
jshandler.php:33
Bitrix\UI\Buttons
Definition
addbutton.php:3
modules
ui
lib
buttons
jshandler.php
Создано системой
1.10.0