Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
jshandler.php
1<?php
2
3namespace Bitrix\UI\Buttons;
4
5final 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}
__construct($handler, $context=null)
Definition jshandler.php:22