Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
jsevent.php
1
<?php
2
3
namespace
Bitrix\UI\Buttons
;
4
5
final
class
JsEvent
implements
\JsonSerializable
6
{
10
private
$event;
11
16
public
function
__construct
($event)
17
{
18
$this->
setEvent
($event);
19
}
20
24
public
function
getEvent
()
25
{
26
return
$this->event;
27
}
28
34
public
function
setEvent
($event)
35
{
36
if
(is_string($event))
37
{
38
$this->
event
= $event;
39
}
40
41
return
$this;
42
}
43
51
public
function
jsonSerialize
()
52
{
53
return
[
54
'event'
=> $this->
getEvent
(),
55
];
56
}
57
}
Bitrix\UI\Buttons\JsEvent
Definition
jsevent.php:6
Bitrix\UI\Buttons\JsEvent\getEvent
getEvent()
Definition
jsevent.php:24
Bitrix\UI\Buttons\JsEvent\__construct
__construct($event)
Definition
jsevent.php:16
Bitrix\UI\Buttons\JsEvent\jsonSerialize
jsonSerialize()
Definition
jsevent.php:51
Bitrix\UI\Buttons\JsEvent\setEvent
setEvent($event)
Definition
jsevent.php:34
Bitrix\UI\Buttons
Definition
addbutton.php:3
modules
ui
lib
buttons
jsevent.php
Создано системой
1.10.0