1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
jsevent.php
См. документацию.
1<?php
2
3namespace Bitrix\UI\Buttons;
4
5final 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}
getEvent()
Определения jsevent.php:24
__construct($event)
Определения jsevent.php:16
jsonSerialize()
Определения jsevent.php:51
setEvent($event)
Определения jsevent.php:34
$event
Определения prolog_after.php:141